命令行指令

Git 全局设置
git config --global user.name "你的名称"
git config --global user.email "admin@admin.com"
创建新版本库
git clone git@192.168.1.188:root/rocky-file-utils.git
cd rocky-file-utils
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
已存在的文件夹或 Git 仓库
cd existing_folder
git init
git remote add origin git@192.168.1.188:root/rocky-file-utils.git
git add .
git commit
git push -u origin master


强制覆盖git服务器的分支
git push -u origin master -f 

相关文章:

  • 2022-02-13
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
  • 2021-12-31
  • 2021-08-26
猜你喜欢
  • 2021-10-22
  • 2021-11-23
  • 2021-09-28
  • 2021-09-06
  • 2022-12-23
  • 2021-05-22
  • 2021-04-01
相关资源
相似解决方案