Skip to content

Magnus167/git-aliases

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-aliases

Cool git aliases that I find useful in daily life

GitHub Repo : https://github.com/Magnus167/git-aliases

.gitconfig

[alias]
	fame = !python -m gitfame
	pmerge = "!f() { BRANCH=$(git branch --show-current); git checkout $1 && git pull && git checkout $BRANCH && git merge $1; }; f"
	staash = stash --all
	github = "!f() { URL=$(git remote get-url origin); python -m webbrowser -t $URL; }; f"
	branchc = branch --show-current
	clonegh = "!f() { git clone https://github.com/$1.git; }; f"
	co = checkout
	cop = "!f() { git checkout $1 && git pull; }; f"
	cob = checkout -b
	branchr = branch --sort=-committerdate
	pr = "!f() { BRANCH=$(git branch --show-current); REPOURL=$(git config --get remote.origin.url); python ~/git-aliases/python/getpr.py $REPOURL $BRANCH; }; f"
	co-pr = "!f() { REPOURL=$(git config --get remote.origin.url); BRANCH=$(python ~/git-aliases/python/checkoutpr.py $REPOURL $1); git checkout $BRANCH; git pull; }; f"

About

Cool git aliases that I find useful in daily life

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published