Skip to content

Instantly share code, notes, and snippets.

@troyfolger
troyfolger / Git tips.md
Last active April 15, 2020 00:08
Handy Git techniques

Git tips

Squashing commits with no rebase:

git checkout master
# do code stuff, decide to start a branch
git checkout -b newbranch
# do more code stuff
git commit -m "commit one"
git push