문제

when i am trying to get latest code from repository "git pull origin master" a message appear, error: Your local changes to the following files would be overwritten by merge: profile-summary-portlet/.project Please, commit your changes or stash them before you can merge. I dont want it to merege.

도움이 되었습니까?

해결책

then make a git reset --hard after that try to pull again.

your local data will be overwritten by this command! So be careful...

다른 팁

Well, the message says it all =). You can stash the changes and apply after if you do not want to merge now.

http://git-scm.com/book/en/Git-Tools-Stashing

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top