Skip to content

Instantly share code, notes, and snippets.

@edysegura
Last active July 11, 2019 14:50
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edysegura/3e7f8f5ee4f5d287cd3a5d4efd9bbb59 to your computer and use it in GitHub Desktop.
Save edysegura/3e7f8f5ee4f5d287cd3a5d4efd9bbb59 to your computer and use it in GitHub Desktop.
[Git] Awesome git tips
git config --global alias.hist "log --pretty=format:'%C(yellow)%h%Creset %ad | %s%d %Cgreen[%an]%Creset' --graph --date=short"
git config --global core.safecrlf false
[user]
name = Your Name
email = your@email.com
[core]
editor = code --wait
[diff]
tool = vscode
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
[merge]
tool = vscode
[mergetool "vscode"]
cmd = code --wait $MERGED
[alias]
hist log --pretty=format:'%C(yellow)%h%Creset %ad | %s%d %Cgreen[%an]%Creset' --graph --date=short
@sandrooliveira
Copy link

Thank you for the tip, I've configured it in our project, now our logs is easy to read 👍

@felipecrs
Copy link

felipecrs commented Jul 11, 2019

Very good, git hist >> git log. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment