This week I've learnt a lot of git stash Before this week I'd been using it the simplest way possible
git stash
$ git stash $ git stash (apply | pop)
Now I've played (almost ruined the local changes in my project) a lot more with other options like:
Git stash -p
Git stash -u
Git stash (apply | pop) stash-key
Git stash show -p --summary stash-key
Git stash -m"message"
Git stash list
Thanks for this
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.
This week I've learnt a lot of
git stash
Before this week I'd been using it the simplest way possible
Now I've played (almost ruined the local changes in my project) a lot more with other options like:
Git stash -p
// iterative modeGit stash -u
// stash also untracked filesGit stash (apply | pop) stash-key
// pop or apply other entry different from the last oneGit stash show -p --summary stash-key
// display stashed changes as diffGit stash -m"message"
// add a custom message to recognize on listGit stash list
// list all stash stackThanks for this