Multiple working directories with Git?

后端 未结 4 637
礼貌的吻别
礼貌的吻别 2020-11-21 07:14

I\'m not sure if this is something supported by Git, but in theory it seems like it should work to me.

My workflow often involves my editing of files in multiple bra

4条回答
  •  执笔经年
    2020-11-21 08:15

    The only solution I can think of is to clone two directories and add them as remote repositories of each other. You can then keep pulling stuff from the changed one into the other without actually pushing anything to the remote repository.

    I am assuming you want to have two working directories and not two clones of the remote because you don't want to push some branches to the remote. Otherwise, two clones of your remote would work just fine - you just need to do some pushes and pulls to keep all three in sync.

提交回复
热议问题