Quick Git Commands

Git Checkout

git clone --recursive git://github.com/foo/bar.git .

Git Add, Commit and Push

git add --all && git commit -m 'Fix' && git push

Git stash

git stash --include-untracked
git stash --all
git stash apply

git stash list
git stash apply stash@{1}

git stash drop
git stash drop stash@{n}

Leave a Comment