1. When working with shell scripts on Windows if you want to add executable permission to it:
$ git update-index --chmod=+x path/to/file
2. Add remote:
$ git remote add origin ssh://...
3. Revert file to a version from commit:
$ git checkout abcd-hash -- file/to/restore
4. Make a patch. link
$ git format-patch -1 HASH
5. Work with stash: https://stackoverflow.com/a/15197232
6. Reset author for last N commits. link