Nice article. Just some corrections about stashing:
To use stash, you need to add the files to the staging area
You don't have to add changes to staging area to be able to stash it.
Example:
$ git status -s M unstaged.txt A staged.txt ?? untracked.txt
Here I have an unstaged file (which is being tracked), a staged file and an untracked file. If I want to stash all tracked files, I can just do:
$ git stash
If I want to include untracked, I can add -u.
-u
Thanks for sharing!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice article. Just some corrections about stashing:
You don't have to add changes to staging area to be able to stash it.
Example:
Here I have an unstaged file (which is being tracked), a staged file and an untracked file.
If I want to stash all tracked files, I can just do:
If I want to include untracked, I can add
-u
.Thanks for sharing!