• 配置使用 Git 仓库的人员姓名
git config --global user.name "username" 
  • 配置使用 Git 仓库的人员邮箱
git config --global user.email "xxx@example.com" 
  • 克隆项目
git clone "项目地址"
  • 上传文件
#进入项目目录
cd /xxx/xxx
#创建需上传至 Git云的文件
echo "xxx">>test.py
#将test.py 文件加入索引中。
git add test.py
#将 test.py 提交至本地仓库。
git commit -m "test.py"
#将 test.py 同步至 Git云服务器。
git push
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐