How to test code with Git and GitHub?
<p>I have a private Git repository set up on GitHub with a master branch. I've been fiddling with tutorials and articles for too long trying to figure out how to test code locally before committing changes to the live site (I have a feeling it's not as complicated as my frustration is trying to tell me). </p>

<p><strong>Simply put</strong>: How do I create a local folder of files identical to the master branch or a branch where I can edit, update, debug and change code (without affecting the master branch and live site), then, when ready, commit the changes to the master branch? It seems like a simple flow, but I'm not experienced with Git. I'm using GitHub Desktop right now.</p>