Linux git problem summary

View all branches of the project, including local and remote branches:

git branch -a

Insert picture description here
View the remote branch:

git branch -r

Delete the local branch:

git branch -d 分支名

Delete remote tag

git push origin :refs/tags/名称

The remotely created branch is not displayed in idea:
Insert picture description here
Linux Check git version:

cat /opt/gitlab/embedded/service/gitlab-rails/VERSION

Common commands of gitlab:

gitlab-ctl start                    # 启动所有 gitlab 组件
gitlab-ctl stop                    # 停止所有 gitlab 组件
gitlab-ctl restart                # 重启所有 gitlab 组件
gitlab-ctl status                 # 查看服务状态
gitlab-ctl reconfigure         # 启动服务
vim /etc/gitlab/gitlab.rb      # 修改默认的配置文件
gitlab-rake gitlab:check SANITIZE=true --trace    # 检查gitlab
gitlab-ctl tail                        # 查看日志
Published 104 original articles · won praise 18 · views 8614

Guess you like

Origin blog.csdn.net/y368769/article/details/103962482