git使用常見問題

2021-10-11 11:14:37 字數 349 閱讀 9518

1.在團隊使用git的時候,尤其是多人合作的專案,經常會出現乙個問題,就是由於同乙個檔名大小寫不一致導致無法合併的問題。

那我們應該怎麼來解決呢?

可以使用git rm –cached將衝突的檔案從git倉庫的快取中刪除,然後改名後再加入到git中

git rm --cached mv git add git commit -m 'rename '
當然,為了一勞永逸,我們可以讓團隊成員都更改配置git的大小寫敏感,避免某些windows使用者繼續製造這樣的問題。

git config core.ignorecase false

git 使用常見問題

git config global core.editor vim git config global diff.tool vimdiff git config global merge.tool vimdiffgit config global pull.rebase true git confi...

git使用常見問題?

1.今天從碼雲上clone乙個專案,等待一會後,一直提示rpc failed http 504 curl 22 the requested url returned error 504 gateway time out the remote end hung up unexpectedly 查了好久...

git常見問題

如果輸入 git remote add origin git github.com djqiang github帳號名 gitdemo 專案名 git 提示出錯資訊 fatal remote origin already exists.解決辦法如下 1 先輸入 git remote rm origi...