JAVA/JAVA문제해결

깃 non-fast-forward 뜨고 깃커밋 안될 때 해결 법.

김꾸꾸(하트) 2022. 11. 10. 21:46

1. 강제 커밋하기

push 누르기 끝 

 

2. 터미널 이용하기

터미널에 git remote 적기.

git remote

그러면 

fatal: not a git repository (or any of the parent directories): .git 

 

이라고 뜬다면 에러난 거임

 

저거 뜨면 바로  git init 이라고 터미널에 적고 엔터

git init

그 후에 git remote add 적고 엔터치면 해결 됨

git remote add