这里是菜鸟。
我有一台个人 Macbook,我想使用 Git 来跟踪更改等。我只想在我的 macbook 上初始化一个存储库并在那里工作。这是一个好主意吗?
如果:
我在我的 Macbook HD 中有一个主仓库,比如 /Users/user/projects/project1
并将其克隆到我实际执行开发的 macbook 上的另一个区域?但这其中有很多冗余。
我有点困惑,想知道人们在类似的个人开发环境中通常采取的步骤是什么。
非常感谢。
最佳答案
I want to just init a repo on my macbook and work there. Is this a good idea?
是的,这是个好主意。这正是我所做的。
What if: I have a main repo somewhere in my Macbook HD, like, /Users/user/projects/project1 and clone it to another area on my macbook where I actually perform development? But there is a lot of redundancy in this.
您的存储库将位于/Users/user/projects/project1/.git/
然后您将存储库 check out 到目录/Users/user/projects/project1 并在那里进行处理。您不需要克隆任何东西。
关于git - 尝试在本地/个人机器上使用 Git 找到一个好的策略进行个人开发,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2892820/