Files
SERVtomaste/docs/thinkpad-setup.md

2.1 KiB

ThinkPad P16 Setup - Git LFS for CAD

When the ThinkPad comes back from repair, follow these steps to set up Git LFS for CAD versioning.

Prerequisites

  • Git installed (should already be there)
  • Network access to dalidou (192.168.86.50)

Setup Steps

1. Open PowerShell as Administrator

cd C:\Users\Antoine\Documents\Dalidou-Server-Setup

2. Run the Setup Script

.\windows-setup.ps1

This will:

  • Verify Git is installed
  • Install Git LFS if needed
  • Initialize Git LFS globally
  • Configure Git for large file uploads (500MB buffer)

3. Create or Clone CAD Repository

Option A: Clone existing repo

git clone http://git.dalidou.home/antoine/cad-projects.git
cd cad-projects

Option B: Initialize new repo

  1. Create repo in Gitea: http://git.dalidou.home
  2. Clone it:
git clone http://git.dalidou.home/antoine/YOUR-REPO-NAME.git
cd YOUR-REPO-NAME

4. Add LFS Configuration Files

Copy-Item "..\Dalidou-Server-Setup\.gitattributes" .
Copy-Item "..\Dalidou-Server-Setup\.gitignore" .

5. Initialize Folder Structure (Optional)

..\Dalidou-Server-Setup\init-cad-repo.ps1

6. Commit and Push

git add .
git commit -m "Initialize CAD repository with LFS tracking"
git push

Verify LFS is Working

# Check tracked patterns
git lfs track

# Should show:
#   *.prt filter=lfs ...
#   *.sldprt filter=lfs ...
#   etc.

Test with a CAD File

# Copy a test part file
Copy-Item "C:\path\to\some\test.prt" .

# Add and commit
git add test.prt
git commit -m "Test LFS upload"
git push

# Verify it used LFS
git lfs ls-files
# Should show: test.prt

Daily Workflow

# Lock before editing
git lfs lock "NX/Projects/MyProject/part.prt"

# Edit in NX...

# Commit
git add .
git commit -m "Updated part geometry"
git push

# Unlock
git lfs unlock "NX/Projects/MyProject/part.prt"

Server Info

Gitea URL http://git.dalidou.home
Gitea IP http://192.168.86.50:3000
SSH git@192.168.86.50:2222
LFS Status Enabled (Nov 27, 2025)