git rm --cache /path/to/file
git commit -am “Remove file”
git push
'코딩 > GIT' 카테고리의 다른 글
git rebase (0) | 2019.05.22 |
---|---|
pull, merge 취소하고 fetch 할 때 (0) | 2019.05.22 |
git rm --cache /path/to/file
git commit -am “Remove file”
git push
git rebase (0) | 2019.05.22 |
---|---|
pull, merge 취소하고 fetch 할 때 (0) | 2019.05.22 |
--rebase
$ git checkout develop
$ git pull
$ git checkout fix/document-copy-delete
$ git rebase develop
*address conflict
$ git rebase --continue
$ git push -f
$ git rebase -i HEAD~7 (number of commits to be addressed) #맨 위에거 남기고 나머지 다 pick -> s
$ git push -f
deleting file when already pushed to remote (0) | 2019.05.22 |
---|---|
pull, merge 취소하고 fetch 할 때 (0) | 2019.05.22 |
사무실 같은데서 리베이스를 했는데, 집에 와서 머지를 했는데 컨플릭트가 많아서 취소하고 싶을때
git reset --hard ORIG_HEAD
git reset --merge ORIG_HEAD ;; If you wanna keep your changes
https://anster.tistory.com/162
뭐 예를 들어, 회사 컴퓨터로 작업하다 force push하고 집에 와서 작업을 이어해야하는 상황에서 그냥 평범(?)하게 pull하면 컨플릭트가 납니다.
이럴 때는 이렇게 하면됩니다.
git fetch --all
git reset --hard origin/som_work
deleting file when already pushed to remote (0) | 2019.05.22 |
---|---|
git rebase (0) | 2019.05.22 |