Answer the question
In order to leave comments, you need to log in
How in GIT to make it so that when you push to the bare repository, the changes are automatically applied to the main repository?
So, there is a dev-server with access to it via SSH. There are 2-3 programmers working on the same project through PhpStorm. There is a repository on the server and its --bare clone. The goal is to make changes automatically appear in the main repository when you commit from PhpStorm. Google easily suggests that this is done using hooks. In particular, by writing instructions on the bare repository in post-update like:
cd ../myProject
git stash
git pull
Answer the question
In order to leave comments, you need to log in
Git has an execute option for a randomly located repo, i.e. "cd .." - can be removed.
You are trying to pull the main repo for the current branch, and since there were no changes on it, accordingly, nothing happens.
Those. you need to pull all the changes and checkout to the new branch.
PS Why is stash running at the main repo, who is "littering" there?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question