Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
mort3228y@vish
http://chrisle.me/2012/12/...
-d : Removes untracked directories
-x : Ignore rules in the .gitignore file
-f : Force it to happen
reset –hard : Discard any tracked files in the repository -
Esper938yI wish, I could help you (I don't know what you did sadly) :-/
Maybe give
git reflog
and
git reset --hard
a try next time you mess something up.
Related Rants
Every time I mess up my git branch I usually find that its pretty futile to fix it with fancy commands like 'git reset', 'git prune', 'git rebase', etc. I usually find it easier to just start over from scratch.
They should really add a command for that
'git fuck-it-start-over'
undefined
git