Skip to content

Instantly share code, notes, and snippets.

@ifnazar
Last active June 23, 2019 14:38
Show Gist options
  • Save ifnazar/6796d62bc8db95911aa69167f9daac67 to your computer and use it in GitHub Desktop.
Save ifnazar/6796d62bc8db95911aa69167f9daac67 to your computer and use it in GitHub Desktop.
GIT
// 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