Fandom

Git Wiki

Clean local repository

30pages on
this wiki
Add New Page
Talk0 Share

check how your repository feels like Edit

git status

scrap the last commit Edit

git reset --hard HEAD^

scrap all changes and start all over again Edit

git reset --hard origin

check is this was enough Edit

git status

clean up more Edit

This will erase all your changes!

git clean -f -d

check is this was enough Edit

git status

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.