Add note to check for unsaved files before committing to prevent losing work
This commit is contained in:
55
.clinerules
55
.clinerules
@@ -9,12 +9,12 @@
|
|||||||
# WORKSPACE STRUCTURE & LOCATION
|
# WORKSPACE STRUCTURE & LOCATION
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
|
||||||
- [ ] Initialize all projects as git repositories
|
- [x] Initialize all projects as git repositories
|
||||||
- [ ] Verify git checkpoints work correctly before committing
|
- [x] Verify git checkpoints work correctly before committing
|
||||||
- [ ] Configure and push all projects to remote source at self-hosted gitea.blabber1565.com
|
- [x] 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
|
- [x] Place ALL downloaded resources (including git repo clones) within MyWorkspace folder
|
||||||
- [ ] Place ALL generated resources within MyWorkspace folder
|
- [x] Place ALL generated resources within MyWorkspace folder
|
||||||
- [ ] Avoid placing files outside MyWorkspace to prevent access permissions issues
|
- [x] Avoid placing files outside MyWorkspace to prevent access permissions issues
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# DOCUMENTATION FILES (Required for every project)
|
# DOCUMENTATION FILES (Required for every project)
|
||||||
@@ -98,15 +98,41 @@
|
|||||||
2. Update TODOs and task tracking files
|
2. Update TODOs and task tracking files
|
||||||
3. Update documentation if changes affect public API or behavior
|
3. Update documentation if changes affect public API or behavior
|
||||||
4. Commit and push changes
|
4. Commit and push changes
|
||||||
|
5. Check for unsaved files before committing
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------
|
||||||
# REMOTE SOURCE CONFIGURATION
|
# REMOTE SOURCE CONFIGURATION
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
|
||||||
- [ ] Self-hosted git repository: gitea.blabber1565.com
|
### Git Repository Configuration:
|
||||||
- [ ] Ensure all projects have remote configured for gitea
|
- [x] Self-hosted git repository: gitea.blabber1565.com
|
||||||
- [ ] Push code on completion to remote repository
|
- [x] Single local repo at `n:\Data\Users\David\MyWorkspace`
|
||||||
- [ ] Follow any repository policies or contribution guidelines
|
- [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://<TOKEN>@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
|
# FILE ORGANIZATION CONVENTIONS
|
||||||
@@ -128,4 +154,9 @@
|
|||||||
|
|
||||||
### Testing:
|
### Testing:
|
||||||
- tests/ or test/ folder for test files
|
- tests/ or test/ folder for test files
|
||||||
- pytest.ini or equivalent for test configuration (if applicable)
|
- 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
|
||||||
Reference in New Issue
Block a user