Multiple repositories in one directory (same level) - is it possible?

前端 未结 7 632
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-06 08:12

My original problem is that I have a directory where I write various scripts. Each of them is independent of others, and usually one-file-long. I want to have some versioning ap

7条回答
  •  感情败类
    2021-02-06 08:46

    Why don't you simply create a separate branch (in the git sense) for each (group of) script(s)?

    You can develop them individually as you please. Switching to a branch will show you only the scripts from that branch. It's sort of like directories but managed by the version control system. If you later want to pluck a branch out into another repository, you can do that and if you want to combine two scripts into a single project, you can do that as well. The copying them to the different machine point might be a problem but you can clone the branch you're interested in and you it should work for you.

提交回复
热议问题