A simple command-line tutorial:
Git global settings:
git config --global user.name "zjcdxzy"
git config --global user.email "709331891@qq.com"
Create git repository:
mkdir MWeb
cd MWeb
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://git.oschina.net/zjcdxzy/MWeb.git
git push -u origin master
Existing project?
cd existing_git_repo
git remote add origin https://git.oschina.net/zjcdxzy/MWeb.git
git push -u origin master
网友评论