Created
October 18, 2015 00:43
-
-
Save patrickleet/edecb190f285a3198094 to your computer and use it in GitHub Desktop.
Average git workflow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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