1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
| git clean -fd
git -D <branch_name>
git push <remote_name> :<branch_name> git push <remote_name> --delete <branch_name>
git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done
git checkout <hash_of_commit> <folder_name>
git reset --hard
git reset HEAD~
git pull --rebase
git push -u <remote-name> <branch>
git log -p -2
git submodule update --recursive --remote
git rebase <commit SHA or branch>
git rebase -i <commit SHA or branch>
git rebase --skip git rebase --continue
$ git rebase -i HEAD~3 pick 8b9100d commit message 1 pick f175572 commit message 2 pick 9bac799 commit message 3
|