학원에서 예전에 했던 프로젝트를 다시 이어서 작업할 일이 있어 방법을 찾다가 쓰게된 글
스쿼시 커밋을 안했다면.. 내 예전 커밋로그는 어디로 ㅠㅠ
작업로그
1. 이렇게 하니 PR이 안됨..
$ git clone -b Rano --single-branch https://github.com/17-sss/fe-w5-searchUI.git
$ cd fe-w5-searchUI\
$ git remote add shoppingHowOrigin https://github.com/17-sss/fe-w3-shopping.git
$ git remote -v
$ git checkout -b searchUI-step1
$ git pull shoppingHowOrigin shoppinghow-step5
$ git checkout -b shoppinghow-step5 --track shoppingHowOrigin/shoppinghow-step5
$ git checkout searchUI-step1
$ git rebase shoppinghow-step5
$ git add .
$ git rebase --continue
$ git remote add upstream https://github.com/codesquad-members-2021/fe-w5-searchUI.git
$ git push --set-upstream origin searchUI-step1
2. PR 가능하도록 다시 작업
$ git clone -b Rano --single-branch https://github.com/17-sss/fe-w5-searchUI.git
$ cd fe-w5-searchUI\
$ git remote add shoppinghow https://github.com/17-sss/fe-w3-shopping.git
$ git remote -v
$ git checkout -b searchUI-step1
$ git pull shoppinghow shoppinghow-step5 --allow-unrelated-histories
$ git add .
$ git commit
$ git remote add upstream https://github.com/codesquad-members-2021/fe-w5-searchUI.git
$ git push --set-upstream origin searchUI-step1
$ git rebase -i 7094f2af
<Typography variant="h3" backgroundColor="gray">
<span>최상단에 있는 commit 로그는 pick으로. 나머지는 s(squash)로.</span>
</Typography>
$ git add .
$ git rebase --continue
$ git push origin searchUI-step1 --force
참고 자료
학원에서 예전에 했던 프로젝트를 다시 이어서 작업할 일이 있어 방법을 찾다가 쓰게된 글
스쿼시 커밋을 안했다면.. 내 예전 커밋로그는 어디로 ㅠㅠ
작업로그
1. 이렇게 하니 PR이 안됨..
2. PR 가능하도록 다시 작업
참고 자료