SOURCE CONTROL IS FOR ALL THE THINGS
Not who* but what…
Git is source control that is
* Well OK, Linus Torvald did name it after himself
Take a copy of the code for you to work on without preventing anyone else from doing the same, and most definiitely not damaging the remote copy
git clone https://github.com/stephlocke/Rtraining.git
Branches are different containers of code - they don’t impact each other. This means that you can make them for features, for trying something out, for releases etc
git branch breakallthethings git checkout breakallthethings
Tell git which bits of code you’re happy* with.
git add iLoveCursors.sql
* For various definitions of happy
Confirm your changes and tell your local git that you’re happy with them
git commit -m "I loves me some cursors"
Super happy with your? Publish it to the master branch
git checkout master git merge breakallthethings -m "I didn't break all the things"
Put new code on the remote location