|
[wenbin@gitlab ~]$ git clone git@gitlab.wenbin.com:devops/openstack.git
Cloning into 'openstack'...
warning: You appear to have cloned an empty repository.
[wenbin@gitlab ~]$ cd openstack/
[wenbin@gitlab openstack]$ ll
total 0
[wenbin@gitlab openstack]$ git config user.name wenbin
[wenbin@gitlab openstack]$ git config user.email lxxx@163.com
[wenbin@gitlab openstack]$ vim test.txt
[wenbin@gitlab openstack]$ ll
total 4
-rw-rw-r--. 1 wenbin wenbin 5 Mar 30 23:47 test.txt
[wenbin@gitlab openstack]$ git add .
[wenbin@gitlab openstack]$ git status
# On branch master
#
# Initial commit
#
# Changes to be committed:
# (use "git rm --cached <file>..." to unstage)
#
#new file: test.txt
#
[wenbin@gitlab openstack]$ git commit -m 'for test'
[master (root-commit) 42eb67c] for test
1 file changed, 1 insertion(+)
create mode 100644 test.txt
[wenbin@gitlab openstack]$ 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.
|
|
|
|
|
|
|