问题描述
因为在安装的时候我修改了配置,所以才出现了以下问题
'''1、可以更改gitlab访问的地址和端口号'''
[root@linux-node2 ~]# vim /etc/gitlab/gitlab.rb
external_url 'http://gitlab.example.com'
'''2、更换gitlab拉取代码的URL'''
[root@linux-node2 ~]# vim /var/opt/gitlab/gitlab-rails/etc/gitlab.yml
gitlab:
# 修改拉取代码的url地址
host: 192.168.56.12
port: 80
https: false
两者地址不一样,所以上传不上去
我修改了这个,所以在上传代码的时候报了许多错,最后一个错是这个
E:\bigtrain\django_test>git push -u origin master
Username for 'http://192.168.220.135': root
Password for 'http://[email protected]':
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'http://192.168.220.135/lxpdemo/vuedemo.git/'
解决方法如下
https://blog.csdn.net/wangshu_liang/article/details/89360094