git and C++ workflow, how to handle object and archive files?

前端 未结 8 1827
鱼传尺愫
鱼传尺愫 2021-02-05 20:40

I use git to interface with an SVN repository. I have several git branches for the different projects I work on.

Now, whenever I switch from one branch to another using

8条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-05 21:07

    A make clean should not be necessary because files that are different between different branches get checked out with the actual date!!!

    This means that if your Makefile is correct, only those object-files, libs and executables are compiled again that really changed because of the checkout. Which is exactly the reason a makefile is there in the first place.

    The exception is if you need to switch compiler options or even compilers in different branches. In that case probably git-new-workdir is the best solution.

提交回复
热议问题