Skip to content

Instantly share code, notes, and snippets.

@tripu

tripu/.gitconfig

Last active Feb 18, 2019
Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@nobuti 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

This comment has been minimized.

Copy link
Owner Author

@tripu 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