我很高兴我在rails代码中修复了这个愚蠢的错误,我很乐意在终端输入以下内容:
git add .
git commit -am "Finally fixed that difficult bug!"
Run Code Online (Sandbox Code Playgroud)
只是发现git不喜欢"!".有谁知道我可以将它纳入我的提交消息的方式?
我知道我可以使用 git config credential.helper 来存储我的用户名和密码。但我只想存储我的用户名,并让终端在每次推送时询问我的密码。这是怎么做的?
类似的东西,但没有密码。
$ git config credential.helper store
$ git push http://example.com/repo.git
Username: <type your username>
Password: <type your password>
Run Code Online (Sandbox Code Playgroud) git ×2