Last active
May 11, 2018 11:11
-
-
Save amon-ra/3b242d7d1dc829152ca00c92714e42cc to your computer and use it in GitHub Desktop.
Sync local gitea repo with ispconfig web host
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
#!/bin/bash | |
#https://gist.github.com/amon-ra/3b242d7d1dc829152ca00c92714e42cc | |
#https://gist.github.com/amon-ra/46409526aa3a4cadb308b67fba68d215 | |
OWNER="$(stat -c "%U:%G" $1)" | |
git --work-tree=$1 --git-dir=$2 checkout -f | |
chown -R $OWNER $1/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment