-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshortcuts.txt
More file actions
63 lines (51 loc) · 1.64 KB
/
shortcuts.txt
File metadata and controls
63 lines (51 loc) · 1.64 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#========================================
# Start Git shortcuts
# https://github.com/jamiewade/git-shortcuts
#========================================
## Miscellaneous
alias c='clear'
alias clean='git reset HEAD --hard && git checkout develop && git pull --rebase origin develop && clear && git status'
alias gaa='git add --all'
alias gd='git diff'
alias gfa='git fetch --all'
alias gs='git status'
## Remotes
alias gr='git remote'
## Branches
alias gbl='git branch --list'
alias gcom='git checkout master'
alias gcod='git checkout develop'
## Pushing
alias gph='git push'
alias gphom='git push origin master'
alias gphod='git push origin develop'
alias gpht='git push --tags'
## Pulling
alias gpl='git pull --rebase'
alias gplom='git add --all && git stash && git pull --rebase origin master && git stash pop'
alias gplod='git add --all && git stash && git pull --rebase origin develop && git stash pop'
## Merging
alias gmm='git merge master'
alias gmd='git merge develop'
## Git Flow
alias gfi='git flow init'
alias gffs='git flow feature start'
alias gfff='git flow feature finish'
alias gffp='git flow feature publish'
alias gffplo='git flow feature pull origin'
alias gfft='git flow feature track'
alias gfrs='git flow release start'
alias gfrp='git flow release publish'
alias gfrt='git flow release track'
alias gfrf='git flow release finish'
alias gfhs='git flow hotfix start'
alias gfhf='git flow hotfix finish'
## Folder Navigation
alias c.1='cd ../'
alias c.2='cd ../../'
alias c.3='cd ../../../'
alias c.4='cd ../../../../'
alias c.5='cd ../../../../../'
#========================================
# End Git shortcuts
#========================================