Configure Git for the first time

git config --global user.name "朱志强"
git config --global user.email "zhuzhiqiang04@meituan.com"

Working with your repository

If you want to simply clone this empty repository then run this command in your terminal.
git clone ssh://git@git.sankuai.com/~zhuzhiqiang04/test1.git
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.sankuai.com/~zhuzhiqiang04/test1.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.sankuai.com/~zhuzhiqiang04/test1.git
git push origin master
All done with the commands?

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2021-05-14
  • 2022-12-23
  • 2021-08-08
  • 2022-12-23
  • 2021-12-24
猜你喜欢
  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
  • 2021-07-09
  • 2021-09-07
  • 2021-12-04
  • 2022-12-23
相关资源
相似解决方案