Git & Git Hub
…or create a new repository on the command line
echo "# hello-world" >> README.md
git init
git add README.md
git commit -m "first commit"
# https 方式提交
# git remote add origin https://github.com/sharkgit1976/hello-world.git
# SSH 方式提交
git remote add origin [email protected]:sharkgit1976/hello-world.git
git push -u origin master
# 配置好密鑰方式提交後,可以不用輸入用戶名和密碼了
git push origin master
…or push an existing repository from the command line
git remote add origin [email protected]:sharkgit1976/hello-world.git
git push -u origin master
…or import code from another repository
You can initialize this repository with code from a Subversion, Mercurial, or TFS project.
...或從另一個存儲庫導入代碼
您可以使用Subversion,Mercurial或TFS項目的代碼初始化此存儲庫。
手動設置連接 GitHub 方式
底部
Git & Git Hub