문제

After some complications with subdirectories which my system administrator finally fixed manually on server. Since then there were some unmerged/untracked errors and conflicts which I tried to fix. But different errors always appear. Latest status is when ever I pull repository it is aborting it in the end.

Long story short... I want my local repository to be totally clean of all my changes and and all local files and directories to be updated to current server status. How to make it?

도움이 되었습니까?

해결책

If you want to delete your old repo and make a new clone, you need to use the git clone command, not git remote add:

# Delete old repo
rm -rf <path to old repo>

# Clone new repo
git clone <url to remote repo>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top