Skip to content

Instantly share code, notes, and snippets.

@tackelua
Forked from davepoon/gist:4371622
Last active October 30, 2022 16:45
Show Gist options
  • Save tackelua/406a337323d2075588d8604eb1173757 to your computer and use it in GitHub Desktop.
Save tackelua/406a337323d2075588d8604eb1173757 to your computer and use it in GitHub Desktop.
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
# First time
git config --global user.name "Gith"
git config --global user.email "[email protected]"
ssh-keygen -t rsa -C "[email protected]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment