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에! 한다.
'Codestates > Full IM' 카테고리의 다른 글
Data Structure Intro (0) | 2020.07.23 |
---|---|
Immersive Prep [TIL] Fibonacci numbers (0) | 2020.07.22 |
Immersive Prep - ES6 Practice (0) | 2020.07.22 |
Immersive Prep - Review this & .bind (0) | 2020.07.21 |
Immersive Prep - Linting & Testing (0) | 2020.07.21 |