【发布时间】:2012-02-03 22:15:47
【问题描述】:
我正在尝试将我的密码推送到我的 git push 以快速添加、提交和推送,但无法让 bash 提示推送并输入我的密码。有人知道该怎么做吗?我敢肯定它一定很简单......
#!/bin/bash
PWD='password'
read MSG
git add .
git commit -m '"$MSG"'
echo "$PWD" | git push |
【问题讨论】:
-
你尝试过 git over ssh+私钥吗?
-
另一个关于处理提示的问题:stackoverflow.com/q/4780893/1175253