Skip to content

Instantly share code, notes, and snippets.

@patrickleet
Created October 18, 2015 00:43
Show Gist options
  • Save patrickleet/edecb190f285a3198094 to your computer and use it in GitHub Desktop.
Save patrickleet/edecb190f285a3198094 to your computer and use it in GitHub Desktop.
Average git workflow
# create a branch (ex. 'bug/checkout-error '
# or 'feature/segment-analytics')
git checkout -b feature/example
# Do work, then commit your changes.
# To create a commit you first need to add the files
# you are going to commit. This is known
# as "staging the files".
# Check that the files changes are what you think.
git status
# If all is good, stage the files by using ```git add```
git add -A # -A is for All (case sensitive)
# Then create the commit.
git commit -m "Initiated the API with keys from config file"
# Add push to your branch on the remote ```origin```
git push origin feature/example
# Once you are done head over to github.com to create a
# Pull Request.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment