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 > Record more than memory' 카테고리의 다른 글
[TIL] HTML 기본 시작 코드 (0) | 2020.07.02 |
---|---|
HTML CSS 에서 ul li 블릿, 기호, 점 없애기 (0) | 2020.07.01 |
var, let, const / console.log , return의 차이 (0) | 2020.06.20 |
Helpful site (0) | 2020.06.20 |