Mark’s 16-step Guide to using Git

1.on branch master

2.git checkout -b issue123

3. do work

4.git add <file>… (only what you want to keep)

5. git commit -m “fixed issue123”

6.git push githubUsername issue123

7.post-review

8.mentor says to change something

9.repeat 3-8 as needed

10.review is approved

B. Bring a branch up to date assuming branch has been PUSHED

11.git checkout master

12. git pull origin master

13. git checkout issue123

14. git checkout -b commit_me_issue_123

15. git rebase master

16. git push githubUsername commit_me_issue_123

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s