I tried to pull the main branch from the client to the server that installed gitlab. However, I received the following error information:
[ root@warehouse git-sample]# git push origin master git@192.168.7.82 password: Counting objects: 3, done. Writing objects: 100% (3/3), 224 bytes | 0 bytes/s, done. Total 3 (delta 0), reused 0 (delta 0) remote: GitLab: No user or key was provided. To git@192.168.7.82 :ite-pon/git-sample.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to ' git@192.168.7.82 :ite-pon/git-sample.git'
It seems that gitlab has set up a preliminary reception in the project, but has blocked the push operation.
Does anyone have any ideas to solve this problem? thanks ~ :)
//////////////////////////////////////////////////// //////////////////////////////////////////////////// ////////////////////////////////////////////////////
Below are the detailed settings and information for both the server and the client:
Server: GitLab and Git and repository information
[ root@warehouse git-sample.git]
Server: Configuration
[ root@warehouse repositories]
Client: workspace information
[ root@warehouse git-sample]
Client: SSH and Git Information
[ root@warehouse git-sample]# git config --global user.name Administrator [ root@warehouse git-sample]# git config --global user.email admin@gitlab.xxxxxxxxxxx.com [ root@warehouse git-sample.git]# ls -l ~/.ssh/id_rsa.pub -rw-r--r-- 1 root root 413 7æ 1 15:51 /root/.ssh/id_rsa.pub
source share