728x90

https://gdtbgl93.tistory.com/63

 

Git push가 안되는 경우 (fatal: refusing to merge unrelated histories)

로컬 저장소에 있는 프로젝트를 깃허브 사이트를 통해 만든 저장소로 push 하는 경우에 이런 메세지가 뜨는 경우가 있다. 1 2 3 4 5 6 7 8 C:\Users\gitProject>git push origin master To https://github.co..

gdtbgl93.tistory.com

 

 

push 안되길래 

pull먼저 해보려는데 다 안되길래

 

1
git pull origin 브런치명 --allow-unrelated-histories
cs

이거 하니까 되더라 

 


 

깃 데스크탑써서 큰 걱정은 없지만

 

 

 

 

 

이것도 한번 읽어봤다..

origin/branch 랑

branch 뭐가 다른지..

 

흠 대충 이해해서는 

branch는 내 로컬이고 

origin/branch가 깃헙에 넘어가는 거같음요..

 

"여기에서 branch_name은 로컬 분기인 반면, origin/branch_name은 원격 추적 분기입니다. 원점에 있는 해당 분기의 상태를 반영합니다..."

 

하지만 다 이해하진 못했다!

 

https://stackoverflow.com/questions/26125162/difference-between-origin-branch-name-and-branch-name

 

difference between origin/branch_name and branch_name?

for pushing to bitbucket. If I do: git push origin origin/branch_name my commits are not pushed. Total 0 (delta 0), reused 0 (delta 0) If I do git push origin branch_name my commits are pushed:

stackoverflow.com

 

728x90

+ Recent posts