私がするとき
git push
これらのコマンドプロンプトが表示されます
Username for 'https://github.com':
次に、ユーザー名を手動で入力します。
Username for 'https://github.com': myusername
次にクリックし、Enterパスワードの入力を求められます。
Password for 'https://[email protected]':
ユーザー名を常に手動で入力するのではなく、自動的に記録したいと思います。
xdotool
私は成功せずにこれを試しました。
私はすでにやった
git config --global user.name myusername
git config --global user.email [email protected]
ただし、引き続き手動で入力するように求められます。
ベストアンサー1
資格情報メモリを有効にするには、端末で次のコマンドを入力します。
$ git config --global credential.helper cache
デフォルトのパスワードキャッシュタイムアウトを秒単位で更新できます。
# This cache timeout is in seconds
$ git config --global credential.helper 'cache --timeout=3600'
も使えます(ただし、一つそうしないと、二重引用符が一部の文字を破る可能性があります):
$ git config --global user.name 'your user name'
$ git config --global user.password 'your password'