-
-
Save joshkennedy/0887f6391961966fe5fe494f67365acf to your computer and use it in GitHub Desktop.
.gitconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Josh Kennedy | |
email = jshknndy@gmail.com | |
[core] | |
excludesfile = ~/.gitignore | |
[alias] | |
co = checkout | |
br = branch | |
st = status | |
cob = "!f() { ticketnum=$1; branchName=$2; git checkout -b \"B2CH-${ticketnum}/${branchName}\"; }; f" | |
undo = reset --soft HEAD~1 | |
com = checkout master | |
pom = pull origin master | |
amend = commit -a --amend --no-edit | |
count = "!f() { compareBranch=${1-master}; git rev-list --count HEAD ^$compareBranch; }; f" | |
squashbase = "!f() { branchName=${1-master}; commitCount=$(git count $branchName); git rebase -i HEAD~$commitCount; }; f" | |
pullbase = "!f() { branchName=${1-master}; git checkout $branchName && git pull && git checkout - && git rebase $branchName; }; f" | |
lg1 = log --graph --all --format=format:'%C(bold green)(%ar)%C(reset) %s %C(bold white)— %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment