0
我正在與RStudio
合作並正確設置wincred
。不,我想讓matlab知道wincred。有任何想法嗎?我發現this有用的鏈接,但不明白爲什麼這不適用於matlab:我已經有一個鍵和訪問github工作!請讓我知道,如果你需要更多的信息。爲什麼Matlab(或git?)不識別wincred
我有以下目錄:
- C:/ Test_Mathlab ......這裏是我的代碼
- C:/Users/user/.ssh ...這裏是我的SSH密鑰(這是工作RStudio)
那些git
設置可能是有用的:
$ git config --list --show-origin
...
file:"C:\\Git\\mingw64/etc/gitconfig" credential.helper=manager
file:C:/Users/sqc/.gitconfig user.name=my name
file:C:/Users/sqc/.gitconfig [email protected]
file:C:/Users/sqc/.gitconfig credential.helper=wincred
file:.git/config remote.origin.url=https://github.com/path2/Test_Matlab
file:.git/config remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
...
(增加一條線
file:.git/config credential.helper=wincred
沒有幫助)
PS:我做了它在某種程度上與RStudio工作,但我對正在發生的事情的知識是真窮;-)
MATLAB不能訪問這些信息,但你總是可以通過命令[如這裏所見]調用'git'(https://stackoverflow.com/questions/42271061/matlab-git-by-command-window)。在這種情況下,您的憑證不會被要求。我認爲MATLAB就是這樣的事情。 –
@AnderBiguri:你有沒有試過鏈接中的過程?我已經這樣做了(我使用'https://github.com/...'而不是'[email protected]:username/...',因爲如果我沒有記錯的話,我有git的麻煩)並且我認爲'matlab '只是在git上實現了一個包裝器。因此我的評論是'git'可能找不到正確的設置。 – Christoph
不知道。我通過Git Bash設置了我的git,當它工作時,如果我使用MATLAB進行推送,它會請求憑證,但如果我在命令中使用'!git push'推送,那麼它不會。不能再多說那 –