1. git commit --amend
2. 내용 수정 후 저장
3. git push -f 또는 git push <remote> <branch> --force
force-pushing은 현재 local 내용을 remote에 overwite하게된다.
원격의 최근 내용이 나의 local에 없다면 내용이 유실
2022. 9. 27. 15:00ㆍPost
출처: https://pung77.tistory.com/26 [몽키의 IT개발 노트:티스토리]
1. git commit --amend
2. 내용 수정 후 저장
3. git push -f 또는 git push <remote> <branch> --force
force-pushing은 현재 local 내용을 remote에 overwite하게된다.
원격의 최근 내용이 나의 local에 없다면 내용이 유실
python 테스트 프레임워크 (0) | 2022.11.08 |
---|---|
한 컴퓨터에서 git 여러 계정 + 스택오버플로우 (4) | 2022.11.07 |
mongodb slow query 조회 (0) | 2022.11.01 |
mongosh 조회 (0) | 2022.09.28 |
What is pip's equivalent of `npm install package --save-dev`? (0) | 2022.09.23 |