gitLab本地推送到远程仓库的命令

如果git remote add origin时提示说在远程仓库有origin了,可以选择git remote rm origin或者换个其他任意的字符串。

分支创建:

在本地新建一个分支: git branch Branch1
切换到你的新分支: git checkout Branch1
将新分支发布在gitlab上: git push origin Branch1
在本地删除一个分支: git branch -d Branch1
在github远程端删除一个分支: git push origin :Branch1   (分支名前的冒号代表删除)

创建tag

本地某个分支创建一个tag:git tag v0.0.1 -m "dev v0.0.1版本"

发布到gitlab:git push origin v0.0.1

删除tag

删除本地tag:git tag -d v0.0.1

删除远程tag:git push origin --delete tag v0.0.1

进入.ssh文件夹,然后更改ssh gitlab 认证密码 ssh-keygen -f id_rsa -p

相关文章:

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