Temporarily lock a git repository

前端 未结 3 1261
北荒
北荒 2021-02-20 17:50

Do you know if there is a way to block committing to a local git repository? In my build environment, I\'m running some git commands through it and it breaks if the user makes

3条回答
  •  我寻月下人不归
    2021-02-20 18:11

    You should clone the repository and do your work in the fork.
    Forks on the local disk can use symlinks to save time and space.

    Git does not have any notion of a lock.

提交回复
热议问题