You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
976 B
38 lines
976 B
# Aliases {{{
|
|
# . ~/.secure
|
|
alias gs="git status -u"
|
|
alias gpl="git pull --rebase"
|
|
alias grbc="git rebase --continue"
|
|
alias gps="git push"
|
|
alias vig="vi .gitignore"
|
|
alias ga="git add -A * && gs"
|
|
alias gai="git add .gitignore"
|
|
alias gd="git diff -w"
|
|
alias gdc="git diff --cached"
|
|
alias gstore="git config credential.helper store"
|
|
gcm(){ git commit -m "$1" ; }
|
|
alias gc="git commit"
|
|
alias gl="git log"
|
|
alias gsl="git shortlog"
|
|
alias gst="git stash"
|
|
alias gstp="git stash pop"
|
|
alias gclear="git stash clear"
|
|
alias egc="vim -c \"set syn=gitcommit\" -c \"set tw=72\" commit-msg.txt"
|
|
# Aliases }}}
|
|
|
|
# Functions {{{
|
|
gcho() { git checkout $1 ; }
|
|
gcln() { git clone $1 ; }
|
|
gremotes() {
|
|
git remote set-url --add --push origin $1
|
|
git remote set-url --add --push origin $2
|
|
}
|
|
gmrgr() {
|
|
# 1 = remote name, 2 = remote path
|
|
git remote add $1 $2
|
|
git fetch $1
|
|
# whichever branch you want to merge
|
|
git merge --allow-unrelated-histories $1/master
|
|
git remote remove $1
|
|
}
|
|
# Functions }}}
|