Initializing a Repository
Open a Git Bash and cd to the folder that needs to be initialized. As an example to initialize a Floworks laptop, cd to C:\Floworks and run the following commands:
git init
git remote add origin git@github.com:Flogistix/Floworks.git
git pull origin master
git remote rm origin
Error:
error: bad signature
fatal: index file corrupt
NOTE: Also use this if "index.lock" file exists
Fix:
rm -f .git/index
git read-tree --reset HEAD
git pull origin master
git gc --prune #remove dangling commits, etc
git reset #will reset to head
git pull (or push) --force #force git to pull/push
git status
git fsck
git fetch origin master
git reset fetch_head
git reset --hard head
git pull origin master