1.原理图
gitlab 基本使用
2. gitlab 基本操作:走的ssh协议
克隆:克隆到本机
git clone http://yunwei:[email protected]:400/yunwei/yunwei.git

填写地址邮箱:必须填,会跟你以后提代码信息绑定
git config --global user.email “[email protected]
git config --global user.name “Your Name”

暂存区:将修改后的文件或者代码提交到暂缓区
git add .

提交到本地仓库:从暂存区提交到本地仓库
git commit -m “更新提示”

提交到远程仓库:从本地仓库提交到远程仓库(服务端)
git push

当本地仓库与远程仓库冲突:将远程仓库最新的代码更新到工作区
git pull

删除本地工作区中的文件提交:n是打印出来 没有真的执行,去掉-n执行删除
git rm -r -n 文件
git rm -r 文件

相关文章:

  • 2020-06-23
  • 2022-02-07
  • 2022-02-07
  • 2022-02-07
  • 2021-10-10
  • 2021-12-25
  • 2022-12-23
猜你喜欢
  • 2021-08-29
  • 2022-01-14
  • 2022-12-23
  • 2021-11-27
  • 2022-02-07
  • 2021-05-11
相关资源
相似解决方案