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'推送,那么它不会。不能再多说那 –