Last updated
I am learning git and trying to setup a workflow that will work for me.
I am trying to setup an additional remote server for my live code.
[CODE]origin: gitlab.com
live: myserver[/CODE]
I setup a `post-receive` hook in a bare repo on my server to deploy changes into the live folder (brand new, empty folder for testing)
Issued `git push live master`
First attempt:
[CODE]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[/CODE]
So I see that my post-receive hook was not executable so I fixed that and ran again. Now, everytime I run it, I get:
[CODE]stdin: is not a tty
Everything up-to-date[/CODE]
Checking the repo on the server - the directory is completely empty... there is nothing there.
How can I force an update or tell git to look again and that everything is not up to date?