I simply need to copy all files in the master
branch to production
branch and generate minified code etc there and check it in production
.
I don't want to merge but only copy the files.
I tried to search in Google but I'm confused.
I'm following this crude method:
#currently I'm in master branch in current directory
rm -rf /tmp/production
cp -r . /tmp/production
rm -rf /tmp/production/.git
git checkout production
cp -r /tmp/production/* .
Is there any single line command for this?