2014年11月25日 星期二

git SSL certificate problem: self signed certificate

今天同事使用Git 發生了

Git Pull Failed: fatal: unable to access 'https://git.xxxx.xxx.xx.xxx.git/': SSL certificate problem: self signed certificate

的問題

去你的Repoistory的.git內執行

git config http.sslVerify false

詳情可以參考

http://stackoverflow.com/questions/11621768/how-can-i-make-git-accept-a-self-signed-certificate

2014年11月18日 星期二

Git "....java did not match any file(s) known to git..."問題

今天使用IntelliJ IDEA的Git pull 與 push時,

一直出現以下的錯誤

Error:error: pathspec 'src/com/aaaa/bbbb/cccc/dddd/DMF.java' did not match any file(s) known to git.
  during executing git commit --only -F /private/var/folders/6h/zv5mh4px15d6yjksw693q_s40000gp/T/git-commit-msg-5225757047314811222.txt -- src/com/aaaa/bbbb/cccc/dddd/DMF.java

苦惱了一個上午,

最後找到原因是因為IDEA的IDE透逗怪怪的,

只要把該檔案做commit 但不要用IDE去做

去terminal下指令


git commit -m commitMessage


再用IDE或指令去pull  or push

這樣就可以正常囉