Windows 용 Git Credential Manager를 비활성화하려면 어떻게합니까?
최신 버전의 Git에서는 매번 Bash 프롬프트에서 암호를 묻는 메시지 대신 "Git Credential Manager for Windows"대화 상자가 기본으로 표시됩니다.
나는이 행동을 정말로 싫어한다. 매번 Bash 셸에서 암호를 비활성화하고 다시 입력하는 방법은 무엇입니까?
그건 그렇고, Git이 Windows 자격 증명이나 내부 데몬을 통해 자격 증명 을 캐싱하고 싶지 않습니다 . 모든 자격 증명 캐싱 을 비활성화하고 싶습니다 .
좋아, Windows 용 Git 설치 프로그램에서 "Git Credential Manager"체크 상자를 체크 하지 말아야 하거나 설치 후 Bash 셸을 관리자 권한으로 실행하고 더 이상 다음으로 등록되지 않도록 줄 git config --edit --system
을 제거하는 데 사용 helper = manager
한다는 것을 발견했다. 자격 증명 도우미.
보너스 포인트의 경우 다음을 사용 git config --edit --global
하고 삽입하십시오.
[core]
askpass =
OpenSSH 자격 증명 팝업을 비활성화하려면
제거 옵션을 사용하여 Windows 용 Git Credential Manager를 제거 할 수있었습니다.
git-credential-manager.exe uninstall
이 명령을 C:\Program Files\Git\mingw64\libexec\git-core
VSTS와 함께 사용해야하는 또 다른 옵션 :
git config credential.modalprompt false --global
그것은 나를 위해 작동하지 않았다 :
C:\Program Files\Git\mingw64\libexec\git-core
git-credential-manager.exe uninstall
Looking for Git installation(s)...
C:\Program Files\Git
Updated your /etc/gitconfig [git config --system]
Updated your ~/.gitconfig [git config --global]
Removing from 'C:\Program Files\Git'.
removal failed. U_U
Press any key to continue...
그러나 --force
플래그로 작동했습니다.
C:\Program Files\Git\mingw64\libexec\git-core
git credential-manager uninstall --force
08:21:42.537616 exec_cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
e
08:21:42.538616 git.c:576 trace: exec: git-credential-manager uninstall --force
08:21:42.538616 run-command.c:640 trace: run_command: git-credential-manager uninstall --force
Looking for Git installation(s)...
C:\Program Files\Git
Updated your /etc/gitconfig [git config --system]
Updated your ~/.gitconfig [git config --global]
Success! Git Credential Manager for Windows was removed! ^_^
Press any key to continue...
나는 달리기를 한 후에 그 흔적을 볼 수 있었다.
set git_trace=1
또한 Git 사용자 이름을 추가했습니다.
git config --global credential.username myGitUsername
그때:
C:\Program Files\Git\mingw64\libexec\git-core
git config --global credential.helper manager
결국 나는이 명령을 넣었다.
git config --global credential.modalPrompt false
I check if the SSH agent is running - open a Bash window to run this command
eval "$(ssh-agent -s)"
Then in the computer users/yourName folder where .ssh is, add a connection (still in Bash):
ssh-add .ssh/id_rsa
or
ssh-add ~/.ssh/id_rsa(if you are not in that folder)
I checked all the settings that I add above:
C:\Program Files\Git\mingw64\libexec\git-core
git config --list
09:41:28.915183 exec_cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-cor
e
09:41:28.917182 git.c:344 trace: built-in: git config --list
09:41:28.918181 run-command.c:640 trace: run_command: unset GIT_PAGER_IN_USE; LESS=FRX LV=-c less
core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
rebase.autosquash=true
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
http.sslbackend=openssl
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
credential.helper=manager
credential.modalprompt=false
credential.username=myGitUsername
And when I did git push
again I had to add username and password only for the first time.
git push
Please enter your GitHub credentials for https://myGithubUsername@github.com/
username: myGithubUsername
password: *************
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 316 bytes | 316.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
Since then using git push
, I don't have the message to enter my Git credentials any more.
D:\projects\react-redux\myProject (master -> origin) (budget@1.0.0)
λ git push
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 314 bytes | 314.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
To https://github.com/myGitUsername/myProject.git
8d38b18..f442d74 master -> master
After these settings I received an email too with the message:
A personal access token (git: https://myGitHubUsername@github.com/
on LAP0110 at 25-Jun-2018 09:22) with gist and repo scopes was recently added
to your account. Visit https://github.com/settings/tokens for more information.
I had had that problem, and I've only removed the git-credential-manager.exe file from:
C:\Program Files\Git\mingw64\libexec\git-core
You can either:
- Win + R, type in "compmgmt.msc",
- select "Services and Applications" → "Services"
- find there Credentials manager,
- change Startup type to Disabled, stop it, Apply and OK.
I wanted to use the credential manager for normal use, but I have scripts where I obviously do not want any prompts whatsoever from git.exe
. This is how I invoke Git from my scripts:
set GIT_TERMINAL_PROMPT=0
git -c core.askpass= -c credential.helper= <command> ...
This way, the script always sees the "correct" no-prompt setting without having to adapt any configuration.
(Git for Windows 2.13.3)
A variation I found that might also come in handy is to set:
set GCM_INTERACTIVE=never
# Or: git config --global credential.interactive never
set GIT_TERMINAL_PROMPT=0
git.exe -c core.askpass= -c credential.helper=manager <command> ...
But note that git.exe -c credential.interactive=never <command> ...
does not work (it seems that the -c
thing isn't routed through to Git Credential Manager for Windows or whatever).
That way, you can use the GCMfW, but it will never prompt you; it will just lookup the credentials, which can be very helpful in non-interactive environs.
and if :wq doesn't work like my case use ctrl+z for abort and quit but these will probably make multiple backup file to work with later – Adeem Jan 19 at 9:14
Also be sure to run Git as Administrator! Otherwise the file won't be saved (in my case).
I struck the same issue on Ubuntu 18.10 (Cosmic Cuttlefish), unable to remove using any normal means. I used git config --global --unset credential.helper
, and that seemed to do the trick.
Use:
C:\Program Files\Git\mingw64\libexec\git-core
git credential-manager uninstall --force
This works on Windows systems. I tested it, and it worked for me.
Maybe the problem is Sourcetree.
Go to Tools → Options
Uncheck "Check default remotes for updates every [10] minutes"
Restart Sourcetree!
you can just delete the Credential Manager.
C:\Users\\AppData\Local\Programs\Git\mingw64\libexec\git-core
참고URL : https://stackoverflow.com/questions/37182847/how-do-i-disable-git-credential-manager-for-windows
'Programming' 카테고리의 다른 글
정수 목록을 보유 할 SQL 변수 (0) | 2020.06.16 |
---|---|
여러 ID 값을 허용하는 T-SQL 저장 프로 시저 (0) | 2020.06.16 |
로거의 다른 레벨을 다른 목적지에 로그하도록 로그 백을 구성하려면 어떻게해야합니까? (0) | 2020.06.16 |
웹보기를 통해 이전 버전의 Subversion 저장소를 찾아 보려면 어떻게합니까? (0) | 2020.06.16 |
.bat 파일을 사용하여 폴더가 있는지 확인 (0) | 2020.06.16 |