From ad0b12b452cec94b24d2b01fdea5b754a16c6a17 Mon Sep 17 00:00:00 2001 From: DavidSaylor Date: Wed, 6 May 2026 23:43:27 -0500 Subject: [PATCH] Add note to check for unsaved files before committing to prevent losing work --- .clinerules | 55 +++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 43 insertions(+), 12 deletions(-) diff --git a/.clinerules b/.clinerules index a8a2f59..318f912 100644 --- a/.clinerules +++ b/.clinerules @@ -9,12 +9,12 @@ # WORKSPACE STRUCTURE & LOCATION # ----------------------------------------------------------------------------- -- [ ] Initialize all projects as git repositories -- [ ] Verify git checkpoints work correctly before committing -- [ ] Configure and push all projects to remote source at self-hosted gitea.blabber1565.com -- [ ] Place ALL downloaded resources (including git repo clones) within MyWorkspace folder -- [ ] Place ALL generated resources within MyWorkspace folder -- [ ] Avoid placing files outside MyWorkspace to prevent access permissions issues +- [x] Initialize all projects as git repositories +- [x] Verify git checkpoints work correctly before committing +- [x] Configure and push all projects to remote source at self-hosted gitea.blabber1565.com +- [x] Place ALL downloaded resources (including git repo clones) within MyWorkspace folder +- [x] Place ALL generated resources within MyWorkspace folder +- [x] Avoid placing files outside MyWorkspace to prevent access permissions issues # ----------------------------------------------------------------------------- # DOCUMENTATION FILES (Required for every project) @@ -98,15 +98,41 @@ 2. Update TODOs and task tracking files 3. Update documentation if changes affect public API or behavior 4. Commit and push changes +5. Check for unsaved files before committing -# ----------------------------------------------------------------------------- +# ----------------------------------------------------------------------- # REMOTE SOURCE CONFIGURATION # ----------------------------------------------------------------------------- -- [ ] Self-hosted git repository: gitea.blabber1565.com -- [ ] Ensure all projects have remote configured for gitea -- [ ] Push code on completion to remote repository -- [ ] Follow any repository policies or contribution guidelines +### Git Repository Configuration: +- [x] Self-hosted git repository: gitea.blabber1565.com +- [x] Single local repo at `n:\Data\Users\David\MyWorkspace` +- [x] Single remote repo at `git@gitea.blabber1565.com:david/myworkspace` +- [x] Use HTTPS with personal access token for authentication +- [x] .netrc file configured for passwordless access + +### Git Commands Reference: +```bash +# Initialize local repo +git init + +# Add all files to tracking +git add . + +# Commit changes +git commit -m "description" + +# Configure remote +git remote add origin git@gitea.blabber1565.com:david/myworkspace +# OR with HTTPS token: +git remote set-url origin https://@gitea.blabber1565.com/david/myworkspace.git + +# Switch to main branch +git branch -M main + +# Push to remote +git push -u origin main +``` # ----------------------------------------------------------------------------- # FILE ORGANIZATION CONVENTIONS @@ -128,4 +154,9 @@ ### Testing: - tests/ or test/ folder for test files -- pytest.ini or equivalent for test configuration (if applicable) \ No newline at end of file +- pytest.ini or equivalent for test configuration (if applicable) + +### NOTE: Workspace Checkpoints +- Git checkpoints are now supported (only MyWorkspace is configured as workspace root) +- Chat logs automatically save to appropriate chatlog.md files +- This configuration ensures Cline can track conversation state properly \ No newline at end of file