Skip to content

Instantly share code, notes, and snippets.

@wolffc
Created October 17, 2013 15:03
Show Gist options
  • Save wolffc/7026542 to your computer and use it in GitHub Desktop.
Save wolffc/7026542 to your computer and use it in GitHub Desktop.
git Config
[gui]
[user]
name = Christian Wolff
email = chris@connye.com
[gui]
encoding = utf-8
[core]
excludesfile = ~/.gitignore_global
[alias]
# commit with message
c = commit -m
## Ammend the last commit
ca = commit --amend
# add
a = add
# add all
aa= !git add -u && git add . && git status
# checkout Branch
cob = checkout -b
# get upstream
up = !git fetch origin && git rebase origin/master
# Interactive Rebase
ir = !git rebase -i origin/master
# rebase local , Merges a local branch to the local master
rbl = !git rebase master && git checkout master && git merge @{-1}
# Done get Upstream, Rebase and Push
done = !git fetch && git rebase origin/master && git checkout master && git merge @{-1} && git push
[push]
default = upstream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment