To copy a git repository from online (github or other)
git clone [insert url here]
That will create a directory for the project and copy it to your local machine.
Once youve made changes to the files, for each file you modified do:
git add myFile.txt