보통 개발자마다 개별 branch를 두고 git에 push 하는 것이 일반적이지만 간혹 master branch 하나로만 git 관리를 하는 곳도 있다. 그럴 때 참고하면 좋을 것 같아서 글을 쓰게 되었다.
git add .
git commit -m "comment"
git pull origin master
git push origin master
Fatal: Not possible to fast-forward, aborting
Fatal: 정방향이 불가능하므로, 중지합니다.
👉 이런 에러가 뜨면서push
나pull
이 안됨
git push origin master --force
git pull --rebase
git config pull.ff only
또는
git config --unset pull.ff
git config --unset --global pull.ff
git log --graph