Git 初始化仓库

  |   0 评论   |   0 浏览
If you already have code ready to be pushed to this repository then run this in your terminal.
cd existing-project

git init

git add --all

git commit -m "Initial Commit"

git remote add origin ssh://git@git.xxx.com/cyhy/xxxx.git

git push origin master

If your code is already tracked by Git then set this repository as your `origin` to push to.
cd existing-project

git remote set-url origin ssh://git@git.xxx.com/cyhy/xxxx.git
git push origin master

All done with the commands?

标题:Git 初始化仓库
作者:guobing
地址:http://www.guobingwei.tech/articles/2020/04/01/1585736296378.html