Step 1 - Create a local repo and init it
Step 2 Got to GH and create a repo, grab link and link rep to local
git remote add origin https:///XXXXXXXXXXXXXX
git commit -m "make a note about the commit"
Tip, stop asking me for creds with every push
$ git config --global credential.helper wincred
Here is another example .gitignore file:
*.a
but do track lib.a, even though you're ignoring .a files above
!lib.a
only ignore the TODO file in the current directory, not subdir/TODO
/TODO
ignore all files in the build/ directory
build/
ignore doc/notes.txt, but not doc/server/arch.txt
doc/*.txt
ignore all .pdf files in the doc/ directory
doc/**/*.pdf