Skip to content

Instantly share code, notes, and snippets.

@tackelua
tackelua / git
Last active October 30, 2022 16:45 — forked from davepoon/gist:4371622
Added the .gitignore, and refresh the file index so the files get ignored properly.
# update gitignore
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
# fetch over write from remote
git fetch origin master
git reset --hard FETCH_HEAD
git clean -df