Back to Groups
Development

Git Commands

Frequently used git commands.

TY
Typeblast
1likes0subscribers12snippets
Snippets (12)
;gclean
Clean
git branch --merged | grep -v main | xargs git branch -d
;gds
Diff staged
git diff --staged
;gac
Add+commit
git add -A && git commit -m ""
;gbr
Branch
git branch
;gps
Push
git push
;gmain
Main
git checkout main
;gpl
Pull
git pull
;gsp
Stash pop
git stash pop
;gamend
Amend
git add -A && git commit --amend --no-edit
;glog
Log
git log --oneline -20
;gco
Checkout
git checkout
;gst
Stash
git stash
Git Commands — Snippet Group | typeblast