Skip to content
bjunix edited this page Jan 14, 2013 · 12 revisions

Some useful Git commands

When directories are removed from origin and you do a fetch/merge you still may end up with those dirs in your working directory. Unfortunately git status is saying nothing to commit (working directory clean) and act as if everything is fine. To clean up your working directory run:

#dry run
git clean -n -d
#actual cleanup
git clean -f -d

Clone this wiki locally