What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-02-18 14:45:19
how to go to a previous commit state
git revert <commit hash> Add solution -
-
Shell/Bash 2022-01-22 10:40:06
how to revert a git revert
git revert <the_commit_hash> Add solution -
-
Shell/Bash 2021-10-25 21:46:16
check current branch github
git branch # should show all the local branches of your repo. The starred branch is your current branch. # If you want to retrieve only the name of the branch you are on, you can do: git rev-parse --abbrev-ref HEAD # or with Git 2.22 and above: git bra... Add solution