Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Basic git / github commands

gst - git status
gc  - git commit
gaa - git add --all
gco - git checkout
gp  - git push
gl  - git pull
gcb - git checkout -b
gm  - git merge
grb - git rebase
gpsup - git push --set-upstream origin $(current_branch)
gbda  - git branch --no-color --merged | command grep -vE "^(+|*|s*(master|develop|dev)s*$)" | command xargs -n 1 git branch -d
gfa - git fetch --all --prune
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #Basic #git #github #commands
ADD COMMENT
Topic
Name
5+8 =