What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2022-02-02 19:36:22
git show which commit a tag points to
git show-ref --abbrev=7 --tags Add solution -
Shell/Bash 2021-10-08 20:05:07
get all the branch in git
$ git branch -a. If you require only listing the remote branches from Git Bash then use this command: $ git branch -r. You may also use the show-branch command for seeing the branches and their commits as follows: $ git show-branch. Add solution -
Other 2021-09-19 17:15:05
gitlab stale branches api script
for branch in `git branch -r | grep -v HEAD`; do \ echo -e `git show --format="%cr %an" $branch | head -n 1` \\t$branch; \ done | \ grep -e '.. months' -e '[8-9] months' | grep 'origin/' | \ sed 's/.*origin\///' | \ xargs -n 1 echo g... Add solution -
Other 2021-09-16 14:30:05
check diff of a particular commit
git show <COMMIT_HASH> 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