Command line instructions
Git global setup
git config --global user.name "* *"
git config --global user.email "**@**.com"
New repository
git clone ssh://git@***/***/abc.git
cd abc
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
Existing folder
cd existing_folder
git init
git remote add origin ssh://git@***/***/abc.git
git add .
git commit -m "Initial commit"
git push -u origin master
Existing Git repository
cd existing_repo
git remote rename origin old-origin
git remote add origin ssh://git@***/***/abc.git
git push -u origin --all
git push -u origin --tags
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)