-
Notifications
You must be signed in to change notification settings - Fork 2
Docs
daadaadaah edited this page Aug 20, 2020
·
13 revisions
https://gist.github.com/ihoneymon/652be052a0727ad59601
$ git push --set-upstream origin <branch_name>
$ git remote add upstream <url>
$ git checkout master
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
$ git fetch upstream master
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 1 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (1/1), 779 bytes | 77.00 KiB/s, done.
From https://github.com/CodeSoom/project-react-1-daadaadaah
* branch master -> FETCH_HEAD
* [new branch] master -> upstream/master
$ git rebase upstream/master
Successfully rebased and updated refs/heads/master.
$ git push
$ git checkout <branch_name(ex : dev/#44)>
Switched to branch 'dev/#44'
$ git rebase origin/master
Successfully rebased and updated refs/heads/dev/#44.
1. PR 보낸 사람의 repo clone 하기
$ git clone <PR 보낸 사람의 repository url>
$ cd <repository name>
2. 보낸 PR의 branch로 이동
$ git checkout <보낸 PR의 branch name>
3. 코드 수정
- ~~~~
4. commit & push
$ git add .
$ git commit
$ git push
4. PR에가서 push 확인하기!
: git의 cache가 문제가 때문에 발생하는 것이므로, 아래 명령어를 통해 cache 내용을 전부 삭제한 후 다시 add All 해서 커밋하면 됨
git rm -r --cached .
git add .
git commit -m "fixed untracked files"