Back to Groups
Development

Git Commands

Frequently used git commands.

MC
mcarter
1likes12snippets

Try it here

Loading snippet…

Your typing stays in this tab. Nothing is saved or sent.
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