code site 例子
Configure Git for the first time
git config --global user.name "朱志强"
git config --global user.email "zhuzhiqiang04@meituan.com"
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
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
git remote set-url origin ssh://git@git.sankuai.com/~zhuzhiqiang04/test1.git
git push origin master