What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-10-08 09:51:11
how to revert to earlier commit git
//Git Rollback to a specific commit via Mac terminal //Navigate to project and open git log cd projectname git log --oneline //Locate and checkout the desired commit ID git checkout abc1234 . //(Type q to quit the git log) //Stage All changes, commit... Add solution -
-
Shell/Bash 2021-09-30 03:57:02
how to see the commit history in git
$ git log commit ca82a6dff817ec66f44342007202690a93763949 Author: Scott Chacon <[email protected]> Date: Mon Mar 17 21:52:11 2008 -0700 changed the version number commit 085bb3bcb608e1e8451d4b2432f8ecbe6306e7e7 Author: Scott Chacon <sc... Add solution -
Other 2021-09-29 04:45:03
Which command would you use to view the history of commits
git log Add solution -
-
Shell/Bash 2021-09-12 19:41:02
how to restore corrupeted git file
8 Step 1: Make a backup of .git (in fact I do this in between every step that changes something, but with a new copy-to name, e.g. .git-old-1, .git-old-2, etc.): cp -a .git .git-old Step 2: Run git fsck --full you will get this error message For examp... Add solution
Best helpers
Ranking is empty