💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
保存密码到硬盘一条命令就可以 $ git config credential.helper store 当git push的时候输入一次用户名和密码就会被记录 这样保存的密码是明文的,保存在用户目录~的.git-credentials文件中 $ file ~/.git-credentials $ cat ~/.git-credentials [root@static Pet_ios]# cat ~/.git-credentials https://administrator:aaf%4347@git.91als.net%3a7083 第一次: [root@static Pet_ios]# git push origin master # Username for 'https://git.91als.net:7083': administrator Password for 'https://administrator@git.91als.net:7083': Counting objects: 3, done. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 269 bytes | 0 bytes/s, done. Total 3 (delta 1), reused 0 (delta 0) To https://git.91als.net:7083/administrator/Pet_ios.git 220d631..3656be5 master -> master 第二次: [root@static Pet_ios]# git push origin master Counting objects: 3, done. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 264 bytes | 0 bytes/s, done. Total 3 (delta 1), reused 0 (delta 0) To https://git.91als.net:7083/administrator/Pet_ios.git 3656be5..161310b master -> master