Skip to content

Instantly share code, notes, and snippets.

@awilson28
Last active February 29, 2016 22:13
Show Gist options
  • Save awilson28/85e8e23d7ac84f552b46 to your computer and use it in GitHub Desktop.
Save awilson28/85e8e23d7ac84f552b46 to your computer and use it in GitHub Desktop.

Starting on the master branch:

git checkout -b store (creates new branch called store and switches to it)

Do some work . . .

git add . (stages work for commit, can be more specific than . --- could git add browser and this will add everything in your browser) git commit -m ‘added store model!’ (commits work with message)

If mucho time has passed since you branched from master, then, BEFORE pushing . . .

git checkout master (switch back to master branch) git pull origin master (pull any work that has been placed on remote master [github]) git checkout store (switch back to working branch) git merge master (adds work from master to your store branch)

Ready to push . . .

git push origin store (pushes store branch to github as “store” branch)

Create pull request!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment