본문 바로가기
Programming/Etc

윈도우 폴더에서 git에 pull 하는법

by Renechoi 2022. 10. 17.

현재 깃 연결 레포 확인

git remote -v




깃 초기화 

git init

 


깃 연결 


git remote add origin <주소>

 


다시 확인 



git remote -v

 



올리기 

git add .
git commit -m 'commit'
git push origin master

 

 

 






문제 발생시 

깃 도움말 

git help



remote 삭제하고 다시 연결해보기 


git remote remove orgin




commit이 안될 때 강제로 하기 

(근본 해결책은 아니니 좋은 방법은 아님) 

git push origin +master

 

 

 






아래와 같은 오류 나왔을 때 해결법 

! [rejected] master -> master (fetch first)




로컬 저장소 연결의 문제이므로 동기화 풀어주고 다시 설정


git pull --rebase origin master
반응형