From d22acca8bde26dd390fd489930f5acdcac63da43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dejan=20Ro=C5=BEi=C4=8D?= Date: Sat, 22 Nov 2025 14:18:26 +0100 Subject: [PATCH] Added Description how to upload to remote git --- howTo.txt | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/howTo.txt b/howTo.txt index 7673ebc..2b25489 100644 --- a/howTo.txt +++ b/howTo.txt @@ -42,3 +42,42 @@ git add .gitattributes *.step *.stp git commit -m "Update STEP models $(date +%F)" git push echo "STEP files pushed with LFS!" + + + +4️⃣ On your PC: set up repo + Git LFS for .step + +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//.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. +