Skip to content

zdocs GIT notes

jhilyard edited this page Feb 11, 2021 · 1 revision

Git - Notes

Git commands I keep using

Resetting my local repository to what is on the remote:

git fetch origin
git reset --hard origin/master
git clean -f

Connecting to remote


Getting new .gitignore entries to work Make sure you have committed all other changes before doing this:

git rm -rf --cached .
git add .
git commit -m "I just updated ignore with..."

Clone this wiki locally