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

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

提交回复
热议问题