git push live服务器说一切都是最新的

时间:2020-04-14 07:22:48

标签: git git-post-receive

我正在学习git,并尝试设置适合我的工作流程。

我正在尝试为我的实时代码设置一个额外的远程服务器。

origin: gitlab.com
live: myserver

我在服务器的裸仓库中设置了一个post-receive钩子,以将更改部署到活动文件夹(用于测试的全新,空文件夹)

已发布git push live master

首次尝试:

stdin: is not a tty
Counting objects: 454, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (396/396), done.
Writing objects: 100% (454/454), 2.52 MiB | 3.49 MiB/s, done.
Total 454 (delta 45), reused 441 (delta 43)
remote: Resolving deltas: 100% (45/45), done.
hint: The 'hooks/post-receive' hook was ignored because it's not set as executable.
hint: You can disable this warning with `git config advice.ignoredHook false`.
To 122.201.115.185:/home/abseenet/git
 * [new branch]      master -> master

所以我看到我的post-receive钩子不是可执行的,所以我将其修复并再次运行。现在,每次运行它,我都会得到:

stdin: is not a tty
Everything up-to-date

正在检查服务器上的仓库-目录完全为空...那里什么也没有。

如何强制更新或让git重新查看,并且一切都不最新?

0 个答案:

没有答案