-
Notifications
You must be signed in to change notification settings - Fork 1
/
gitrc
49 lines (49 loc) · 1.67 KB
/
gitrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
alias gs='git stash'
alias gsp='git stash pop'
alias gl='git pull'
alias gp='git push'
alias gd='git diff --color $1 | diff-so-fancy | less'
alias gdc='git diff --color --cached $1 | diff-so-fancy | less'
alias ga='git add'
alias gcl='git config --list'
# alias gc='git commit --verbose'
alias gc='bc'
alias gca='git commit -v -a -m'
alias gb='git branch -vvv'
alias gba='git branch -a'
alias gco='git checkout'
function gcot {
git checkout --track enjoei/$1 $1
}
alias gt='git tag'
alias gpt='git push --tags'
alias gpwt="git push && git push --tags"
alias lg="git lg"
alias cgs='c && git status'
alias gpo='git push -u origin `git rev-parse --abbrev-ref HEAD`'
alias gpc='git push -u caironoleto `git rev-parse --abbrev-ref HEAD`'
alias gpatch='git diff master -p'
alias grm="git rm -rf"
alias gitx="open -b nl.frim.GitX"
alias version="cat config/version"
alias gi='git init'
alias gac='gca'
alias gps='gp'
alias gpl='gl --rebase'
alias gfp='git format-patch -1'
alias gst='git apply --stat'
alias gch='git apply --check'
alias gam='git am --signoff <'
alias grj='git apply --reject --whitespace=fix'
alias grh="git reset HEAD"
alias greset='git reset HEAD\^ && grh .'
alias ignore_empty='find . \( -type d -empty \) -and \( -not -regex ./\.git.* \) -exec touch {}/.gitignore \;'
alias gitrc="cat ~/.gitrc"
alias stash="git add . && git commit -m 'Stash'"
alias stop="git rebase --abort"
alias skip="git rebase --skip"
alias rename="git commit --amend"
alias gam="rename --no-edit"
alias show="git show"
alias gbd="git fetch -p > /dev/null && git branch -vv | awk '/: gone]/{print \$1}' | xargs git branch -D"
alias redate='GIT_COMMITTER_DATE="$(date)" git commit --amend --no-edit --date "$(date)"'