dongfangho 发表于 2018-1-10 13:16:07

Centos7安装配置gitlab

$ git clone git@gitlab.wenbin.com:devops/openstack.git  
Cloning into 'openstack'...
  
warning: You appear to have cloned an empty repository.
  

  
$ cd openstack/
  
$ ll
  
total 0
  
$ git config user.name wenbin
  
$ git config user.email lxxx@163.com
  
$ vim test.txt
  
$ ll
  
total 4
  
-rw-rw-r--. 1 wenbin wenbin 5 Mar 30 23:47 test.txt
  
$ git add .
  
$ git status
  
# On branch master
  
#
  
# Initial commit
  
#
  
# Changes to be committed:
  
#   (use "git rm --cached <file>..." to unstage)
  
#
  
#new file:   test.txt
  
#
  
$ git commit -m 'for test'
  
for test
  
1 file changed, 1 insertion(+)
  
create mode 100644 test.txt
  
$ git push
  
warning: push.default is unset; its implicit value is changing in
  
Git 2.0 from 'matching' to 'simple'. To squelch this message
  
and maintain the current behavior after the default changes, use:
  

  
git config --global push.default matching
  

  
To squelch this message and adopt the new behavior now, use:
  

  
git config --global push.default simple
  

  
See 'git help config' and search for 'push.default' for further information.
  
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
  
'current' instead of 'simple' if you sometimes use older versions of Git)
  

  
GitLab: You are not allowed to push code to this project.
  
fatal: Could not read from remote repository.
  

  
Please make sure you have the correct access rights
  
and the repository exists.
  
页: [1]
查看完整版本: Centos7安装配置gitlab