git clean
git reset --hard HEAD
Undoing in Git - Reset, Checkout and Revert
git remote add [some name] git://github.com/[user]/[project].git
git fetch [some name]
git diff [some name]/[branch]
git checkout [some name]/[branch]
git merge [some name]/[branch]
git fetch [some name]
.git/config
[branch "master"]
remote = origin
merge = refs/heads/master
Or
git config branch.master.remote origin
git config branch.master.merge refs/heads/master
Globally
git config --global branch.master.remote origin
git config --global branch.master.merge refs/heads/master
Use fast-export
git clone git://repo.or.cz/fast-export.git
git init git_repo
cd git_repo
~/fast-export/hg-fast-export.sh -r /path/to/old/mercurial_repo
git checkout HEAD
From http://www.lemoda.net/git/rm-gitignore-files/
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"