#Git and Github #How to write a good commit message: #type of commit: brief description. #type of commit: fix, feat (used for any new functionality that is committed), test, refactor (use if updating and/or removing existing code), docs (use if updating your readme) #Git Workflow: #1. git init #2. make changes #3. git status #4. git add name_of_file #5. git commit -m "Message here" #Github Workflow: #1. Create a new repository on Github #2. Copy the SSH address from Github #3. git remote add remote_name remote url #4. git push origin main
#To push to your remote repository #1. Make changes #2. git add name_of_file #3. git commit -m "Message here" #4. git push origin main
#Git branch and pull request #1. git branch -b feature_name #2. git add #3. git commit -m #4. git push origin feature_name #5. put in a pull request #6. visit Github and merge your pull request into main #7. git checkout main #8. git pull origin main