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 2021-11-04 06:43:24
how to get stashed on git
git stash pop or git stash apply Add solution -
Shell/Bash 2021-11-03 04:43:13
git ignore local changes and pull
git stash git pull git stash pop Add solution -
Shell/Bash 2021-10-25 16:02:06
how do you come back after git stash
git stash pop or git stash apply Add solution -
Shell/Bash 2021-10-25 12:59:07
git gss
# ---------------------- # Git Aliases # ---------------------- alias ga='git add' alias gaa='git add .' alias gaaa='git add --all' alias gau='git add --update' alias gb='git branch' alias gbd='git branch --delete ' alias gc='git commit' alias gcm='git co... Add solution -
Other 2021-10-14 10:14:04
handling merge conflict
This is very question because I am facing with this issue all the time. Basically conflict arises when more than one commit that has to be merged with some change in the same place or same line of code. In this case git will not be able to predict which ... Add solution