git错误记录
1.cannot open git-upload.exe
eclipse-->show view-->Git responsitory-->修改config文件
[core]
repositoryformatversion = 0
filemode = false
logallrefupdates = true
[remote "origin"]
url = https://[email protected]/sample.git //仓库地址
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
2.ssh localhost connection refused
打开openSSH看SSH的状态
3.eclipse连接远程项目
perference-->Git Configuration-->Add Entry-->输入http.sslVerify = false
3.cannot find shared object
运行gog软件,重启Git Bash
4.openssh-->etc-->sshd_config-->PubkeyAuthentication yes
5.在配置的过程中还遇到一种情况,就是master登录slave成功,但是slave登录不上master
我机器上面解决的方法是: 在master机器上面修改 chmod 700 ~/.ssh 在slave机器上面修改 chmod 700 ~/.ssh 就成功了!
6.Permission denied (publickey,keyboard-interactive).
解决方法:
设置sshd的配置文件(sshd_config)的这条配置:PasswordAuthentication yes
然后重启服务:service sshd restart
7.普通用户登录密码始终错误,sshd启动有报错
sshd启动报错:
Unsupported option GSSAPIAuthentication
Unsupported option GSSAPICleanupCredentials
解决方法:
注销sshd的配置文件(sshd_config)的如下配置:
#GSSAPIAuthentication yes
#GSSAPICleanupCredentials yes
#UsePAM yes
然后重启服务:service sshd restart
8.copssh 点击红色启动按钮 直接闪退或退出
解决方法:在弹出的运行对话框输入 services.msc ,打开windows的服务启动open_sshd。
9.创建git仓库:
9.1创建一个空的文件夹
9.2git init --bare(裸仓库和非裸仓库的区别)
9.3git int(否则输入git命令会提示:this operation must be run in a work tree)
9.4要先在master分支commit之后才能git branch dev创建新分支(否则提示: Not a valid object name: 'master')
10.将本地项目提交到远程git服务器url:http://blog.csdn.net/change_on/article/details/50563744
11.裸仓库如何创建多个分支:本地仓库创建并提交git push origin dev:dev