init repository in local folder
git init
add or track file
git add README.md
commit changes and add message
git commit -m "first commit"
add remote repository with the name origin
git remote add origin git@github.com:LiqiLearningGroup/Git.git
push commits
git push -u origin master
just push an existing repository from the command line
git remote add origin git@github.com:LiqiLearningGroup/Git.git
git push -u origin master
edit by Prefocuson
(You have already set your git tool linked to your github account)
First, get the repository address of LiqiLearningGroup
You can click into a specific repository to get its address on the right of "Clone or Download", get the address. Like the image shown:
Now you have copied the address of the repository(Git repo address is:git@github.com:LiqiLearningGroup/Git.git).Then open your command tool.
Choose a local folder to clone repository into. Use "cd" command to choose local folder.I get the folder named "Github"(the image below).
git clone git@github.com:LiqiLearningGroup/Git.git
"Enter" to done it.
Now, you have succeed to clone the repository into your own folder.
Then you can edit files by yourself. Using master or branch to edit, it's both ok, the way you like.