Frage

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?

War es hilfreich?

Lösung

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>
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top