Paths are relative to your current directory
Get the latest updates from GitHub
- before you start every morning
- frequent during the day
- before you start a commit
Check local changes
git st. (Don’t worry, git status will still work.)
Inspect commit log
Saving changes to your repository
-
Tell Git what you want to save.
- Everything in the repository, regardless of your current directory:
- Everything in your current directory and below only, not the same as
--allif you’re sitting in a subfolder:
- A specific folder (recursive):
- A specific file:
If you have moved or renamed a file without usinggit mv, you must add both the old and the new file or folder name! -
Commit your saved changes to your local repository. End the message with the issue ID in parentheses: see branch strategy for why.
-
Send your changes to GitHub.
- If you didn’t set the upstream when you created the branch, you need to do it now: