로컬상에서 commit 후에 push까지 했는데 다시 reset을 시켜야 하는 상황이라고 가정해보자. 로컬 remote를 git reset --hard HEAD로 되돌리고 git push를 하면 push를 할 수 없다고 나온다. 이럴땐 아래의 명령어를 이용해서 강제 push를 시키도록한다.
git push origin +[브랜치이름]
또는
git push origin [브랜치이름] -f'개발 > GIT' 카테고리의 다른 글
| Fast Foward Merge 되돌리기 (0) | 2022.09.08 |
|---|---|
| Support for password authentication was removed on August 13 (0) | 2021.08.18 |
| remote: Repository not found. (0) | 2021.02.16 |
| Rebase (0) | 2019.07.15 |