To obtain a "clean" source at some revision, do:
git archive <commit #> | tar -x -C <destination dir>
Source: https://stackoverflow.com/questions/160608/do-a-git-export-like-svn-export
Friday, October 25, 2019
Setting Up "Local" Git Server
Inspired by https://dev.to/erhankilic/setting-up-your-own-git-server--26h6
sudo mkdir /git/example.git
sudo git init --bare
cd /home/<localuser>
sudo git clone
/git/example.git
# (bcoz the repo has root permission in this example)
To use:
git add ... whatever
git commit -a
sudo git push # (bcoz the repo has root permission in this example)
Subscribe to:
Posts (Atom)