#how to make a github repository
- First make a repository on github with nothing in it
- Then type
git initwithin the folder I want to put on github - Using
git add <your files>add the files to the list to be uploaded - Check you're adding the right files with
git status - Type
git commit -m <"my message">to confirm the upload - Make sure github knows who you are using
git config --global user.email "<email>"andgit config --global user.name "<username>" - Type
git remote add orgin <URL of the github repository>to create the address the uploaded files will go to - Check this is correct with
git remote -v - Type
git push origin masterto upload the files to the URL address - Type in your username and password for github
#To update the files to send
git add <your files>These are any files you have edited or want to send 1b.git rm <you files>removes any files you no longer want to upload from the github repository but NOT your local machinegit commit -m "<my message>"Any message you want to include with the upload. I usually include the dategit commit origin masterThis confirms the changes you want to upload
#If you already have a repository
- git clone
- git add; git commit -m ... etc
- git push origin master