日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux 安装git失败,Linux运维知识之linux下安装git常见故障整理

發布時間:2023/12/20 linux 38 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux 安装git失败,Linux运维知识之linux下安装git常见故障整理 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

本文主要向大家介紹了Linux運維知識之linux下安裝git常見故障整理,通過具體的內容向大家展現,希望對大家學習Linux運維知識有所幫助。

FAQ1:?Permission?denied?(publickey,gssapi-keyex,gssapi-with-mic,password).[root@testss?git]#?git?clone?git@192.168.1.200:testone.git

正克隆到?'testone'...

git@192.168.1.200's?password:

Permission?denied?(publickey,gssapi-keyex,gssapi-with-mic,password).

fatal:?Could?not?read?from?remote?repository.

Please?make?sure?you?have?the?correct?access?rights

and?the?repository?exists.解決辦法:-C是用戶名[root@testss?git]#?ssh-keygen?-t?rsa?-C?"git"

[root@testss?git]#?cat?/root/.ssh/id_rsa.pub

ssh-rsa?AAAAB3NzaC1yc2EAAAABIwAAAQEAwhn+ejPkZY?***省略

[root@testss?git]#?cat?/root/.ssh/id_rsa.pub?>?/home/git/.ssh/authorized_keys2:?fatal:?The?remote?end?hung?up?unexpectedly???????fatal:?Couldn't?find?remote?ref?master解決辦法:如圖[http]postBuffer?=?5242880003:?如果輸入$?git?push?origin?master,提示出錯信息:error:failed?to?push?som?refs?to?.......????解決辦法如下:1、先輸入$?git?pull?origin?master?//先把遠程服務器github上面的文件拉下來2、再輸入$?git?push?origin?master3、如果出現報錯?fatal:?Couldn't?find?remote?ref?master或者fatal:?'origin'?does?not?appear?to?be?a?git?repository以及fatal:?Could?not?read?from?remote?repository.4、則需要重新輸入$?git?remote?add?origin?git@github.com:djqiang/gitdemo.git4:使用git?init創建了一個倉庫。再git?clone到其他位置,在clone的倉庫使用git?push的時候出現“receive.denyCurrentBranch'?configuration?variable?to?'refuse'.To?IP-ADDR?:testone.git”?????????//?命令行?$?git?--bare?init?--shared?????5:?error:?src?refspec?master?does?not?match?any.$?git?push?origin?master

error:?src?refspec?master?does?not?match?any.

error:?failed?to?push?some?refs?to?'git@192.168.9.19:testone/test.git'本地版本庫為空,不能提交解決辦法$?git?add?hello??//提交一個文件

$?git?commit?-m?"first?commit"????//注釋6:???remote:?error:?insufficient?permission?for?adding?an?object?to?repository?database?./objects????//?原因分析:?因為test.git?目錄權限寫入失敗remote:?error:?insufficient?permission?for?adding?an?object?to?repository?database?./objects

remote:?fatal:?failed?to?write?object

error:?remote?unpack?failed:?unpack-objects?abnormal?exit

To?192.168.9.19:testone/test.git

!?[remote?rejected]?master?->?master?(unpacker?error)

error:?failed?to?push?some?refs?to?'git@192.168.9.19:testone/test.git'//解決辦法:??將test.git目錄設置成git.git?屬主屬組權限?再次上傳成功

本文由職坐標整理并發布,希望對同學們有所幫助。了解更多詳情請關注系統運維Linux頻道!

總結

以上是生活随笔為你收集整理的linux 安装git失败,Linux运维知识之linux下安装git常见故障整理的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。