git 本地项目初始化提交至仓库


命令行指令

Git初始化配置
git config --global user.name“赖杨”
git config --global user.email“1075569880@lianantech.com”
创建一个新的存储库
git clone http://teamwork-HVM-domU/yinian430/cnvd.git
cd cnvd
触摸README.md
git add README.md
git commit -m“add README”
git push -u origin master
已有本地项目
cd existing_folder
git init
git remote add origin http://teamwork-HVM-domU/yinian430/cnvd.git
git add。
git commit -m“初始提交”
git push -u origin master
现有的Git存储库
cd existing_repo
git remote rename origin old-origin
git remote add origin http://teamwork-HVM-domU/yinian430/cnvd.git 
git push -u origin --all
git push -u origin --tags

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM