You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Session Management**: Unsaved changes confirmation on exit
27
28
-**Cross-Platform**: Runs on Linux, Windows, and macOS
28
29
30
+
## Integrated Git Operations
31
+
32
+
Terminal Intelligence includes a built-in Git client powered by go-git, providing a complete Git workflow without requiring external Git installation. Access all Git operations through an intuitive visual panel interface.
33
+
34
+
### Opening the Git Panel
35
+
36
+
Press `Ctrl+G` to open the Git Operations panel. The panel provides:
37
+
- Three input fields for repository URL, username, and password/token
38
+
- Eight operation buttons organized into logical groups
39
+
- Real-time status and error messages
40
+
- Automatic credential detection from existing repositories
41
+
42
+
### Git Operations
43
+
44
+
The Git panel organizes operations into three logical groups:
45
+
46
+
**Remote Operations** (Clone, Pull, Fetch)
47
+
-**Clone**: Clone a repository from a remote URL to your workspace
48
+
-**Pull**: Fetch and merge changes from the remote repository
49
+
-**Fetch**: Download changes from remote without merging
50
+
51
+
**Local to Remote Workflow** (Stage, Commit, Push)
52
+
-**Stage**: Stage all modified and untracked files for commit
53
+
-**Commit**: Create a commit with staged changes (requires commit message)
54
+
-**Push**: Push local commits to the remote repository
55
+
56
+
**Info and Undo** (Status, Restore)
57
+
-**Status**: View repository status (modified, staged, and untracked files)
58
+
-**Restore**: Discard all uncommitted changes and restore to last commit
59
+
60
+
### Git Workflow Example
61
+
62
+
1.**Check Status**: Press `Ctrl+G`, select Status button, press Enter
63
+
2.**Stage Changes**: Navigate to Stage button, press Enter
64
+
3.**Commit**: Navigate to Commit button, press Enter
65
+
- Enter your commit message in the input field
66
+
- Press Enter to commit (message cannot be empty)
67
+
4.**Push**: Navigate to Push button, press Enter to push to remote
68
+
69
+
### Authentication
70
+
71
+
The Git panel supports multiple authentication methods:
72
+
73
+
**GitHub Personal Access Token (Recommended)**
74
+
- Username: Your GitHub username
75
+
- Password: GitHub Personal Access Token (ghp_...)
76
+
- Tokens are securely stored in repository configuration
77
+
78
+
**Username/Password**
79
+
- Username: Your Git username
80
+
- Password: Your Git password
81
+
- Works with most Git hosting services
82
+
83
+
**Credential Auto-Detection**
84
+
- When opening the panel in an existing repository, credentials are automatically loaded from `.git/config`
85
+
- Stored credentials are used for subsequent operations
86
+
87
+
### Navigation
88
+
89
+
-`Tab` or `Down`: Move focus forward (URL → USER → PASS → Buttons → Commit Message)
90
+
-`Shift+Tab` or `Up`: Move focus backward
91
+
-`Left/Right`: Navigate between buttons when focused on button row
92
+
-`Enter`: Activate selected button or submit commit message
93
+
-`Esc`: Close the Git panel
94
+
95
+
### Commit Message Input
96
+
97
+
When the Commit button is selected:
98
+
1. Press Enter to show the commit message input field
99
+
2. Type your commit message (cannot be empty)
100
+
3. Press Enter to create the commit
101
+
4. The input field disappears after successful commit
102
+
103
+
### Features
104
+
105
+
-**Pure Go Implementation**: No external Git installation required
106
+
-**Credential Management**: Secure storage and auto-detection of credentials
107
+
-**Visual Feedback**: Real-time status messages for all operations
108
+
-**Error Handling**: Clear error messages with actionable guidance
109
+
-**Repository Detection**: Automatically detects if current directory is a Git repository
110
+
-**Cross-Platform**: Works consistently on Linux, Windows, and macOS
For more technical details, see [internal/git/README.md](internal/git/README.md).
127
+
29
128
## Agentic Code Fixing
30
129
31
130
The AI assistant can autonomously fix code issues in your open files. Simply describe what you want to change, and the AI will read your code, generate a fix, and apply it directly to the editor.
Copy file name to clipboardExpand all lines: internal/git/README.md
+79-3Lines changed: 79 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,20 +2,96 @@
2
2
3
3
This package provides Git functionality for the Terminal Intelligence IDE using the go-git library.
4
4
5
+
## Overview
6
+
7
+
The Git integration provides a complete Git workflow without requiring external Git installation. It includes a visual panel interface accessible via `Ctrl+G` that supports all common Git operations.
0 commit comments