Git基本命令上传代码到git仓库
Command line instructions
Git global setup
git config --global user.name "hmf" git config --global user.email "hmf@xxx.com"
Create a new repository
git clone http://git.xxxx.com/cg/cicd.git cd cicd touch README.md git add README.md git commit -m "add README"
Existing folder
cd existing_folder git init git remote add origin http://git.xxxx.com/cg/cicd.git git add . git commit -m "Initial commit"
Existing Git repository
cd existing_repo git remote rename origin old-origin git remote add origin http://git.xxxx.com/cg/cicd.git