要开始使用,您需要在终端中运行这些命令。
第一次使用Git??学习基本的Git命令
git config --global user.name "你的名字"
git config --global user.email "你的邮箱"
如果要简单地克隆此空存储库,请在终端中运行此命令。
git clone https://******.git
如果你代码已经准备好推送到仓库,请在终端中执行该命令
cd existing-project
git init
git add --all
git commit -m "Initial Commit"
git remote add origin https://****/***.git
git push -u origin master
如果你的代码已经由Git跟踪,然后设置这个仓库作为你的“origin”推送。
cd existing-project
git remote set-url origin https://****/****.git
git push -u origin --all
git push origin --tags