显示标签为“Gerrit”的博文。显示所有博文
显示标签为“Gerrit”的博文。显示所有博文

2010年8月4日星期三

git no branch


兄弟,那个git no branch ,网上查到了
终于救回来了,
有个命令git help里看不到的 叫reflog
Git reflog 可以看到no branch 上 提交的tag list
然后找到 最后一个tag , git checkout xxxx 就可以了

2009年5月22日星期五

repo upload: Permission denied (publickey)

Upload project scripts/:
branch ed-patchset ( 1 commit, Fri May 22 18:56:58 2009 +0800):
4dd9c101 remove unecessary script file *~
to 10.83.35.33:808 (y/n)? y
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

--------------------------------------------
[FAILED] scripts/ ed-patchset (Upload failed)

得到上面的错误。但是如果我测试和gerrit的链接
ssh -p 29418 v.w@10.83.35.33
可以发现ssh的key是工作正常的,可以链接到server.

同时
git push ssh://v.w@10.83.35.33:29418/kernel HEAD:refs/for/master
push也是OK

但就是repo upload不可以。想了很久,最后发现
git config --global user.name "Your Name Comes Here"
git config --global user.email you@yourdomain.example.com
这两个命令我把名字和邮件的头字母写成了大写造成的,我该成小写后,repo upload终于可以工作啦!!

因此,上面的git config --global对于使用repo是多么的重要呀!连大小写都是要区分的。