When
Can occur when cloning a repo with HTTPS.
Resolution
Use the -c http.sslVerify=false
flag.
git -c http.sslVerify=false clone https://github.com/some-repo
git config --global core.ignorecase false
/bin/**
/obj/**
\DotNetProject
\bin
\obj
.gitignore
DotNetProject.csproj
// deletes the last commit
git reset --hard HEAD^
// where X is the number of commits to undo
git reset HEAD~X
git diff 5cec833a 4ef01d13 --stat
// where the hex are commit id's to differentiate.
git config --global user.name "Christopher Snay"
git config --global credential.helper store
git rm --cached <file>
git rm --cached <directory> -r
git rm --cached ./ -r
git rebase -i 0abc12def // <- the commit before the one that needs edit
// use vi to change "pick" to "edit" on the commit(s) that need edits, then write/quit
git commit --amend --author="Christopher Snay <[email protected]>"
// write/quit vi
git rebase --continue // <- repeat until all edited commits complete
git push -f
git reset --hard HEAD
git init
git remote add origin https://<<<repo>>>.git
git add .
git commit -m "some comments"
git push -u origin master
// after setting up a public ssh key
// cd to new directory
git init
git remote add origin [email protected]:<<<me>>>/<<<project>>>.git
git pull origin master
ssh-keygen
// copy contents from C:\Users\<<<me>>>\.ssh\id_rsa.pub
// paste contents to: https://bitbucket.org/account/user/<<<me>>>/ssh-keys/
ssh-keygen -f C:\somepath\filename
git init
git add .
git remote add origin [email protected]:<<<myaccountname>>>/<<<project>>>.git
git commit -m "comment"
git push -u origin master