feat: 完善车间环境中......
This commit is contained in:
@@ -146,7 +146,7 @@ git config --global user.email "你注册GitHub的邮箱@example.com"
|
||||
# 或者使用更持久的存储(凭据将明文保存在磁盘,请确保系统安全)
|
||||
git config --global credential.helper store
|
||||
```
|
||||
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
|
||||
|
||||
|
||||
3. **首次推送时输入凭据:**
|
||||
- 执行 `git push` 等需要鉴权的操作时,Git 会提示输入用户名和密码。
|
||||
@@ -199,3 +199,18 @@ git push origin feature/your_feature_name
|
||||
开发完成后,请在 GitHub 页面上针对您的分支发起 **Pull Request (PR)**。由其他团队成员进行 Code Review,确认无误后再 Merge 合并入 `main` 分支。
|
||||
|
||||
---
|
||||
|
||||
关于大文件的处理(可选)
|
||||
如果你希望优化仓库,可以考虑使用 Git LFS 管理大文件:
|
||||
bash
|
||||
复制
|
||||
# 1. 安装 Git LFS
|
||||
git lfs install
|
||||
|
||||
# 2. 追踪大文件(例如 .usd 文件)
|
||||
git lfs track "*.usd"
|
||||
|
||||
# 3. 提交 .gitattributes 文件
|
||||
git add .gitattributes
|
||||
git commit -m "Add Git LFS tracking for large files"
|
||||
⚠️ 注意:如果已经提交了大文件到历史记录,需要使用 git lfs migrate 来重写历史,否则只是追踪新文件。
|
||||
Reference in New Issue
Block a user