top | item 45946373

(no title)

JakeStone | 3 months ago

I agree with never deploying a .git folder to prod.

Part of our deployment script for sites has something like:

  git clone -d 1 -b $BRANCH https://blahblah.tld/project
  rm -rf .git*
So no .git directory, .gitignore, and so on.

discuss

order

pabs3|3 months ago

Another option for that might be `git archive | tar -C /path/to/dir -xf-`