Compare commits
No commits in common. "ee92ac8c2af64e1b146641082e4254a857dc8bc3" and "601e36ccff5f1d1b6d106d2ba2f903b51de3abfd" have entirely different histories.
ee92ac8c2a
...
601e36ccff
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
*.step filter=lfs diff=lfs merge=lfs -text
|
||||||
33
TestFile.txt
33
TestFile.txt
|
|
@ -1,33 +0,0 @@
|
||||||
On your development machine (not the server), do something like:
|
|
||||||
|
|
||||||
# One time per machine
|
|
||||||
git lfs install
|
|
||||||
|
|
||||||
# Create a new local repo
|
|
||||||
mkdir 3d-models
|
|
||||||
cd 3d-models
|
|
||||||
git init
|
|
||||||
|
|
||||||
# Add Forgejo as remote (adjust user/repo)
|
|
||||||
git remote add origin https://forgejo.rozic-dev.com/<your_user>/<your_repo>.git
|
|
||||||
# or use SSH later when we set that up
|
|
||||||
|
|
||||||
|
|
||||||
Now set up LFS for STEP files:
|
|
||||||
|
|
||||||
git lfs track "*.step"
|
|
||||||
git add .gitattributes
|
|
||||||
|
|
||||||
|
|
||||||
Copy one of your 3D models into the folder, e.g. model.step:
|
|
||||||
|
|
||||||
cp /path/to/your/model.step ./model.step
|
|
||||||
|
|
||||||
git add model.step
|
|
||||||
git commit -m "Add first STEP model"
|
|
||||||
git push -u origin main
|
|
||||||
# if it complains about 'main' not existing, try:
|
|
||||||
# git push -u origin master
|
|
||||||
|
|
||||||
|
|
||||||
If LFS is working, the .step file in the web UI will look small (Git pointer), and in Repo → Settings → LFS you’ll see actual LFS objects stored.
|
|
||||||
BIN
model.step
(Stored with Git LFS)
Normal file
BIN
model.step
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in a new issue