亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

directory search
Guides gitattributes giteveryday gitglossary gitignore gitmodules gitrevisions gittutorial gitworkflows Administration git archive git bundle git clean git filter-branch git fsck git gc git instaweb git reflog Basic Snapshotting git add git commit git diff git mv git reset git rm git status Branching and Merging git branch git checkout git log git merge git mergetool git stash git tag Debugging git bisect git blame git grep Email git am git format-patch git request-pull git send-email External Systems git fast-import git svn Getting and Creating Projects git clone git init Git git annotate git archimport git bisect-lk2009 git check-attr git check-mailmap git check-ref-format git checkout-index git cherry git citool git column git credential git credential-cache git credential-store git cvsexportcommit git cvsimport git cvsserver git diff-files git diff-tree git difftool git fast-export git fetch-pack git fmt-merge-msg git get-tar-commit-id git gui git http-backend git http-fetch git http-push git imap-send git index-pack git interpret-trailers git ls-remote git ls-tree git mailinfo git mailsplit git merge-file git merge-index git merge-one-file git merge-tree git mktag git mktree git name-rev git notes git p4 git pack-objects git pack-redundant git pack-refs git parse-remote git patch-id git prune git prune-packed git quiltimport git receive-pack git remote-ext git remote-fd git remote-testgit git repack git replace git rerere git send-pack git sh-i18n git sh-setup git shell git show-branch git show-index git stripspace git unpack-file git unpack-objects git upload-archive git upload-pack git var git verify-commit git verify-tag git whatchanged git worktree Inspection and Comparison git describe git shortlog git show Miscellaneous api credentials api index gitcli gitcore tutorial gitcredentials gitcvs migration gitdiffcore githooks gitk gitnamespaces gitremote helpers gitrepository layout gitsubmodules gittutorial 2 gitweb gitweb.conf pack format User Manual Patching git apply git cherry-pick git rebase git revert Plumbing Commands git cat-file git check-ignore git commit-tree git count-objects git diff-index git for-each-ref git hash-object git ls-files git merge-base git read-tree git rev-list git rev-parse git show-ref git symbolic-ref git update-index git update-ref git verify-pack git write-tree Server Admin git daemon git update-server-info Setup and Config git git config git help Sharing and Updating Projects git fetch git pull git push git remote git submodule
characters

名稱

git-credential-store  - 幫助者將證書存儲在磁盤上

概要

git config credential.helper 'store [options]'

描述

注意

使用這個幫助程序會將你的密碼存儲在磁盤上,只受文件系統(tǒng)權限保護。如果這不是一個可以接受的安全權衡,請嘗試使用 git-credential-cache1,或者找到一個與操作系統(tǒng)提供的安全存儲集成的幫助器。

該命令將無限期地將證書存儲在磁盤上供將來的 Git 程序使用。

你可能不想直接調(diào)用這個命令; 它意味著被 git 的其他部分用作憑證助手。請參閱 gitcredentials [7]或EXAMPLES以下。

選項

--file=<path>

使用<path>查找和存儲憑據(jù)。該文件將設置文件系統(tǒng)權限,以防止系統(tǒng)上的其他用戶讀取它,但不會被加密或以其他方式保護。如果沒有指定,憑據(jù)將搜索從~/.git-credentials$XDG_CONFIG_HOME/git/credentials和證書將被寫入到~/.git-credentials如果存在的話,或者$XDG_CONFIG_HOME/git/credentials如果它存在,前者沒有。另請參閱文件。

文檔

如果沒有明確設置--file,則有兩個文件,其中 git-credential-store 將按優(yōu)先順序搜索憑據(jù):

~/.git-credentials

用戶特定的憑據(jù)文件。

$XDG_CONFIG_HOME/git/credentials

第二個用戶特定的憑證文件。如果$XDG_CONFIG_HOME沒有設置或為空,$HOME/.config/git/credentials將被使用。如果~/.git-credentials具有匹配的憑證,則不會使用存儲在此文件中的任何憑證。如果你有時使用不支持它的老版本 Git,不建立這個文件是個好主意。

對于憑證查找,將按照上面給出的順序讀取文件,發(fā)現(xiàn)第一個匹配的憑證優(yōu)先于在列表下方的文件中找到的憑證。

憑證存儲將默認寫入列表中的第一個現(xiàn)有文件。如果這些文件都不存在,~/.git-credentials將被創(chuàng)建并寫入。

擦除證書時,匹配的證書將從所有文件中刪除。

示例

這個幫手的重點是減少你輸入用戶名或密碼的次數(shù)。例如:

$ git config credential.helper store
$ git push http://example.com/repo.git
Username: <type your username>Password: <type your password>[several days later]$ git push http://example.com/repo.git[your credentials are used automatically]

存儲格式

.git-credentials文件以明文形式存儲。每個憑證都按照以下形式存儲在自己的行中:

https://user:pass@example.com

當 Git 需要對特定 URL 上下文進行身份驗證時,憑證存儲會將該上下文視為與憑證文件中的每個條目相匹配的模式。如果協(xié)議,主機名和用戶名(如果我們已經(jīng)有一個)匹配,那么密碼將返回給 Git。有關更多信息,請參閱 gitcredentials [7]中的配置討論。

Previous article: Next article: