62 lines
1.6 KiB
Markdown
62 lines
1.6 KiB
Markdown
# git lfs files
|
|
|
|
## quickstart script
|
|
|
|
1. make a folder or navigate to a folder where you want the repo to be in
|
|
|
|
2. right click on the folder and open PowerShell or `Open in Terminal`
|
|
|
|
3. run the following:
|
|
|
|
```powershell
|
|
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser; irm "https://forge.joshwel.co/mark/common/raw/branch/main/repoquickset.ps1" | iex
|
|
```
|
|
|
|
## file placements
|
|
|
|
- for Game-only projects
|
|
|
|
```text
|
|
Game (Unity) Repository Folder
|
|
├── .git/
|
|
├── .gitignore (from Unity.gitignore)
|
|
├── .gitattributes (from Unity.gitattributes)
|
|
└── ...
|
|
```
|
|
|
|
- for Modelling-only projects
|
|
|
|
```text
|
|
Modelling (Maya / Z Brush / Substance Painter) Repository Folder
|
|
├── .git/
|
|
├── .gitattributes (from Modelling.gitattributes)
|
|
└── ...
|
|
```
|
|
|
|
- for Shared projects
|
|
|
|
```text
|
|
Shared Repository (a la Integrated Project)
|
|
├── .git/
|
|
├── Game
|
|
│ ├── .gitignore (from Unity.gitignore)
|
|
│ ├── .gitattributes (from Unity.gitattributes)
|
|
│ └── ...
|
|
├── Modelling
|
|
│ ├── .gitattributes (from Modelling.gitattributes)
|
|
│ └── ...
|
|
└── ...
|
|
```
|
|
|
|
## setting up lfs
|
|
|
|
```shell
|
|
# init git lfs
|
|
git lfs install
|
|
|
|
# optional, for multi-user/multi-collaborator repositories
|
|
git config lfs.https://forge.joshwel.co/<username>/<repository>.git/info/lfs.locksverify true
|
|
```
|
|
|
|
also see the forge's [Resources](https://poissonparler.notion.site/La-Forge-du-Poisson-Resources-d6d6b694a92b4211ac7496dec2b8689d) page for more info on setting up LFS projects
|