Hello, Big stranger 2020. 8. 4. 21:56

 

Simple Git Workflow

 

1. Both pairs fork repo on Github.

2. Both pair clone their repo to local -> git clone <Repo URL>

3. Add pair's fork as remote

-> git remote add pair <Repo URL for pairs fork>

-> git remote -v

4. Commit your change to your local repo

-> git add <change file>

-> git commit -m 'change'

5. Push your code to your remote origin -> git push origin master ( or other Branch name )

6. Pull pair's code to local repository -> git pull pair master ( or other Branch name )

7. Commit pair's change to local repo

-> git add < change file >

-> git commit -m 'change TOO'

8. Push pair code to pair's remote origin

-> git push origin master ( or other branch name )

9. You pull latest version of pair's code

-> git pull pair master ( or other branch name )

 10. Repeat!!

 

항상 push는 자신에게 pull pair의 Repo에! 한다.