Created
October 18, 2024 21:00
-
-
Save vsl-iil/62607fc247a12b424e0c59520e1fdc45 to your computer and use it in GitHub Desktop.
post-receive-pull
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Переименуйте файл в post-receive, сделайте исполняемым и поместите в директорию hooks удалённого репозитория (git init --bare) | |
# Путь до репозитория: | |
REPO="/home/example/repo" | |
# Имя удалённого репозитория (например, origin) | |
REMOTENAME=server | |
# Имя ветки | |
BRANCH=master | |
cd $REPO | |
GIT_DIR="$(pwd)/.git" | |
git pull $REPO $BRANCH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment