创建git-credentials
vim .git-credentials
https://{username}:{password}@github.com #gitlab或github地址
执行git命令
git config --global credential.helper store
cat ~/.gitconfig
[credential]
helper = store
更多精彩
免费共享资源
http://www.ltchao.top
vim .git-credentials
https://{username}:{password}@github.com #gitlab或github地址
git config --global credential.helper store
cat ~/.gitconfig
[credential]
helper = store
免费共享资源
http://www.ltchao.top
shell腳本獲取腳本所在目錄 執行腳本的父目錄不一定是當前的工作目錄。 url=$(dirname $(readlink -f $0))