git issue 匯總


(1)部分:

https://wiki.mahara.org/wiki/Developer_Area/Contributing_Code/Troubleshooting_your_Gerrit_connection

(2)git報錯:unable to create file xxx.file : permission denied

不知道是不是文件在什么地方被打開或者占用了,試了網上很多方法都不行,最后重啟了電腦,再執行git 命令,就可以了。

(3)git merge 后 push 到 Gerrit 失敗,提示 no new changes ?

需求:Git 分支合並 問題:使用 git merge 在本地執行分支合並操作,然后想 push 到 gerrit 上評審入庫,可是在提交時,提示: ! [remote rejected] HEAD -> refs/for/dev (no new changes) 分析:no new changes 的意思,是說,這個合並,是個線性的合並。而合並的那些歷史的 commit 節點,在 gerrit 上都已經評審過了,都是已有的 change 單,所以 gerrit 認為沒有新的提交,就不讓你提交評審。 方法1: 在 git merge 的時候,加上 --no-ff 參數,是為了讓它生成一個新的 commit,這樣就可以提交了~(不過生成的 gerrit change 是看不到改動信息的):git merge --no-ff v4.5 或者 git merge branch_name -m "分支合並" 方法2:不經過 gerrit,直接 push 入遠程庫。(不推薦)

【4】$ gitdir=$(git rev-parse --git-dir); scp -p -P 12345 longchaoqun@smartgit:hooks/commit-msg ${gitdir}/hooks/ 返回結果Either -f or -t option should be set

解決:直接從服務器上下載http://smartgit/gerrit/tools/hooks/commit-msg, 把commit-msg文件放到.git/hooks目錄吧

【5】git pull之后,merge了最新一個commit版本,但是沒有changeId。

解決:重新提交后再push。git commit --amend ; git push

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM