Created
June 22, 2015 17:08
-
-
Save rufus2021/87f6163ecab2ba4d3d0d to your computer and use it in GitHub Desktop.
This file contains 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
Steps for creating a new branch, adding, commiting & pushing changes & creating a new pull request | |
NOTE: don't make commits directly to the develop branch. | |
step 1: git checkout develop - checks out the develop branch locally | |
step 2: git pull - gets you the latest updates for the repo | |
step 3: git checkout -b name bugfix/yaya-codes-awesome - create a new branch based off of develop | |
you make a change in sass code | |
npm test - tests code for any syntax errors | |
if no errors -> git status - shows you the files changed | |
git add . - adds all changed files | |
git commit -m 'commit message here' | |
git push (you get a message to set upstream branch) | |
copy/paste the message and hit enter | |
go to github.com/repo and create a new pull request | |
Abandon code
git checkout -- ./
in root directory
git checkout .
on the branch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Merging others' branch
git pull origin [branch]