Skip to content

Instantly share code, notes, and snippets.

@fhugoduarte
Last active February 15, 2023 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fhugoduarte/155c29c1bfe578dfe2e06dc0197b600b to your computer and use it in GitHub Desktop.
Save fhugoduarte/155c29c1bfe578dfe2e06dc0197b600b to your computer and use it in GitHub Desktop.
git alias
# To open the .gitconfig file on xcode, run: git config --global core.editor code
# To edit the .gitconfig file, run: git config --global --edit
[core]
editor = code
[alias]
c = !git add --all && git commit -m
s = !git status -s
l = !git log --pretty=format:'%C(blue)%h %C(red)%d %C(white)%s - %C(cyan)%cn, %C(green)%cr'
amend = !git add --all && git commit --amend --no-edit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment