What do you want to save?
Add Code snippet
New code examples
-
-
-
Shell/Bash 2022-02-02 05:15:42
revert to commit git
# This will destroy any local modifications. # Don't do it if you have uncommitted work you want to keep. git reset --hard 0d1d7fc32 # Alternatively, if there's work to keep: git stash git reset --hard 0d1d7fc32 git stash pop # This saves the modificatio... Add solution -
-
-
Shell/Bash 2022-01-24 12:55:56
git stash pop specific
git stash save "my_stash" Add solution -
Shell/Bash 2021-11-21 02:44:14
undo git stash with conflicts
git reset HEAD . (note the trailing dot) git stash (save the conflicted merge, just in case) git checkout develop git fetch upstream; git merge upstream/develop git checkout <new-branch>; git rebase develop git stash apply stash@{1} Add solution -