Skip to content

Instantly share code, notes, and snippets.

@harini-ua
Last active August 25, 2022 17:34
Show Gist options
  • Save harini-ua/dbe64a4a71cbf3bb52a05c73e7f0f256 to your computer and use it in GitHub Desktop.
Save harini-ua/dbe64a4a71cbf3bb52a05c73e7f0f256 to your computer and use it in GitHub Desktop.
Git Aliases
# To show users from all branches (not only the ones in the current branch) you have to add --all flag
# git authors --all
# This is also great for checking who touched a specific file rather than the whole project. You must add the path to the file at the end.
# git authors <path_to_file>
git config --global alias.authors 'shortlog --summary --numbered --email'
# Rename the branch
# git rename <current_branch_name> <new_branch_name>
git config --global alias.rename 'branch -m'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment