使用带有用户名和密码的url进行不带SSH的Git pull

时间:2020-01-22 12:13:34

标签: git pull

我有问题。 我正在使用不带SSH的老太婆进行自动git pull,这与我无关。 我只有特殊帐户才能阅读并使用它进行拉动。 我运行git pull https://name:pass@github.com/my/repo.git。 问题是在执行此命令后,我收到消息

From https://github.com/my/repo
 * branch              HEAD       -> FETCH_HEAD
Already up-to-date.

但是未下载更改。 当我手动朝这个方向运行git pull时,我会得到

Merge branch 'my_branch' of https://github.com/my/repo into my_branch
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updates upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.     

在vim中,我写了:wq来保存并提取更改。

当我不更改服务器上的任何代码时,为什么git要合并提取数据。 我想在老太婆中运行此命令。

0 个答案:

没有答案