…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 方式
底部
时间: 2024-10-29 11:19:59