Compare commits
No commits in common. "main" and "601e36ccff5f1d1b6d106d2ba2f903b51de3abfd" have entirely different histories.
main
...
601e36ccff
BIN
HomeStuff/Nosilec-spalnica-tefon-prstani-scipalec.step
(Stored with Git LFS)
BIN
HomeStuff/Nosilec-spalnica-tefon-prstani-scipalec.step
(Stored with Git LFS)
Binary file not shown.
BIN
HomeStuff/nosilec-kablice-arome.step
(Stored with Git LFS)
BIN
HomeStuff/nosilec-kablice-arome.step
(Stored with Git LFS)
Binary file not shown.
83
howTo.txt
83
howTo.txt
|
|
@ -1,83 +0,0 @@
|
||||||
# 1) Rename local branch master -> main
|
|
||||||
git branch -m master main
|
|
||||||
|
|
||||||
# 2) Push local main and overwrite remote main
|
|
||||||
git push -u origin main --force
|
|
||||||
|
|
||||||
# 3) (Optional) delete remote master branch
|
|
||||||
git push origin --delete master
|
|
||||||
|
|
||||||
|
|
||||||
#git lfs install
|
|
||||||
Sets up Git hooks so LFS works in this repo / user.
|
|
||||||
|
|
||||||
bash
|
|
||||||
Copy code
|
|
||||||
git lfs track "*.step"
|
|
||||||
Tells Git: “for all files matching *.step, store them using LFS”.
|
|
||||||
|
|
||||||
This writes a .gitattributes file.
|
|
||||||
|
|
||||||
Then normal Git workflow:
|
|
||||||
|
|
||||||
bash
|
|
||||||
Copy code
|
|
||||||
git add .gitattributes
|
|
||||||
git add model.step
|
|
||||||
git commit -m "Add model"
|
|
||||||
git push
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#Downloading step models
|
|
||||||
cd /home/dejan/Dokumenti/Forgeo
|
|
||||||
|
|
||||||
curl -L "https://cloud.rozic-dev.com/s/shCCG1ZIsHBaiPX/download" -o model.step
|
|
||||||
|
|
||||||
|
|
||||||
#!/bin/bash
|
|
||||||
# save as push-step.sh and run in your repo folder
|
|
||||||
git lfs track "*.step" "*.stp" 2>/dev/null || true
|
|
||||||
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/<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.
|
|
@ -1,7 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# save as push-step.sh and run in your repo folder
|
|
||||||
git lfs track "*.step" "*.stp" 2>/dev/null || true
|
|
||||||
git add .gitattributes *.step *.stp
|
|
||||||
git commit -m "Update STEP models $(date +%F)"
|
|
||||||
git push
|
|
||||||
echo "STEP files pushed with LFS!"
|
|
||||||
Loading…
Reference in a new issue