-
-
Save ifnazar/6796d62bc8db95911aa69167f9daac67 to your computer and use it in GitHub Desktop.
GIT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// List git branches ordered by commit | |
git branch --sort=-committerdate # DESC | |
git branch --sort=committerdate # ASC | |
// LOG | |
gitk --all $( git fsck --no-reflog | awk '/dangling commit/ {print $3}' ) | |
gitk --all $( git fsck --unreachable | awk '{print $3}' ) | |
// CHANGE COMMITS | |
git rebase -i HEAD~10 | |
// CHANGE THE AUTHOR NAME/EMAIL OF A COMMIT | |
git commit --amend --author="Igor Fabiano Nazar <[email protected]>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment