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

前端 未结 8 1823
鱼传尺愫
鱼传尺愫 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:28

    To keep multiple checkouts of the same repo, you can use git --work-tree. For example,

    mkdir $BRANCH.d
    GIT_INDEX_FILE=$BRANCH.index git --work-tree $BRANCH.d checkout $BRANCH
    
    0 讨论(0)
  • 2021-02-05 21:30

    In the contrib/ directory of the git distribution, there is a script called git-new-workdir that allows you to checkout multiples branches in different directories without cloning your repository.

    0 讨论(0)
提交回复
热议问题