Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

FYI, you can avoid the $APP directory removal and clone by doing:

    GIT_WORK_TREE=/home/username/apps/$APP git checkout master


Yes, 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.


If 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: