3 ms·
FYI, you can avoid the $APP directory removal and clone by doing: GIT_WORK_TREE=/home/username/apps/$APP git checkout master
by dugmartin 6y ago
FYI, you can avoid the $APP directory removal and clone by doing:
GIT_WORK_TREE=/home/username/apps/$APP git checkout master
- xu6ahb8E 6y agoYes, that's true, thanks for mentioning it. It comes from a time when I did not use docker so I wanted to get rid of build artifacts, but building within docker, this is not a problem anymore.
- c17r 6y agoIf you need to use your "old way" for something else, you can use 'git clean -fdx' which will remove all files and directories that git does not track.