Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
据我了解,存储是本地的,并不意味着被推送到远程仓库。
有时我正在进行的工作尚未准备好提交,但我必须以某种方式与其他工作人员或我自己从不同的工作站访问。
用 git 模拟某种“远程存储”或将 git 用于我刚刚描述的工作流程的最佳方法是什么?
我只是使用远程分支。只要确保团队中的每个人都同意这些“正在进行的工作”分支的命名约定,就可以了。通常,在分支前加上“wip”应该传达此信息。:
$ git push origin wip_new_feature