Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.24 KB

how-to-commit.md

File metadata and controls

25 lines (18 loc) · 1.24 KB

How to Commit Git Changes to Docs Repo

  1. cd into local docs folder
  2. git pull to update local with the latest changes on GitHub
  3. git branch should yield v0.11 in your terminal
  4. If you’re not on the right branch, git checkout v0.11
  5. Make changes to titles/descriptions and save the files
  6. git add .
  7. git status to show the files that you’ve changed
  8. git commit -m "message" to describe the changes you’ve made
  9. git push to take your local changes and push them up to github

Tip: To open the folder you're in within your terminak in VS Code with the code., go into VS Code, run SHIFT + COMMAND + P and then type in SHELL COMMAND: Install 'code' command in Path

Tips

  • Make sure to git pull before you make any new changes. If you don't git pull and there end up being remote changes that you don't have locally, you may get a merge conflict.

If there's a merge conflict, the following command will get all the changes without overriding your own change (force merging remote into local while preserving your changes):

git pull hit the escape key :wq

If you ever want to "force git pull" and scrap anything you have locally and reset to the master branch, you can run: git reset --hard origin/master