Skip to content

Instantly share code, notes, and snippets.

@tripu
Last active February 18, 2019 09:00
Show Gist options
  • Save tripu/f011973848473905109c3c351cbde810 to your computer and use it in GitHub Desktop.
Save tripu/f011973848473905109c3c351cbde810 to your computer and use it in GitHub Desktop.
Git config file
[alias]
ap = add -p
br = branch
cf = config
ci = commit
co = checkout
df = diff
lg = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
pl = pull
ps = push
re = remote
sh = stash
st = status
[commit]
gpgsign = true
[core]
editor = emacs -nw
excludesFile = ~/.gitignore
[credential]
helper = cache --timeout=86400
[gpg]
program = gpg2
[push]
gpgsign = false
[user]
email = <YOUR_EMAIL_ADDRESS>
name = <YOUR_USERNAME>
signingkey = <YOUR_KEY_ID>
@nobuti
Copy link

nobuti commented Feb 6, 2019

Mine: https://github.com/nobuti/dotfiles/blob/master/gitconfig

[rebase]
  autoStash = true

is a lifesaver for me, to be able to make a pull without commit the current changes... gold!

@tripu
Copy link
Author

tripu commented Feb 18, 2019

Mine: https://github.com/nobuti/dotfiles/blob/master/gitconfig

[rebase]
  autoStash = true

is a lifesaver for me, to be able to make a pull without commit the current changes... gold!

Interesting, thank you!
I tend to do that manually when I really want to pull but I have local changes.
This might be quicker.

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