mirror of
http://123.113.99.28:3000/azurice/Voyager.git
synced 2026-01-28 07:34:35 +08:00
chore: add git lfs lock config
This commit is contained in:
2
.gitattributes
vendored
2
.gitattributes
vendored
@@ -1 +1 @@
|
||||
Content/** filter=lfs diff=lfs merge=lfs -text
|
||||
Content/** filter=lfs diff=lfs merge=lfs -text lockable
|
||||
|
||||
17
README.md
17
README.md
@@ -1,3 +1,20 @@
|
||||
# Voyager
|
||||
|
||||
Developed with Unreal Engine 5
|
||||
|
||||
## 冲突避免约定
|
||||
|
||||
1. 在项目根目录输入如下命令,确保Push时检查服务器上的文件锁
|
||||
|
||||
```bash
|
||||
git config lfs.http://62.234.216.156/Stanley/Voyager.git/info/lfs.locksverify true
|
||||
```
|
||||
|
||||
2. 重要的蓝图/资产文件使用如下命令上锁,不解锁的话其他人在远端无法修改这个文件,避免冲突
|
||||
|
||||
```bash
|
||||
git lfs lock Content/Blueprints/BP_MyCharacter.uasset # 后面改成要锁的文件的相对路径
|
||||
git lfs locks # 查看文件锁状态
|
||||
git lfs unlock Content/Blueprints/BP_MyCharacter.uasset # 解锁
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user