Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mbinic/vscode-tgit
TortoiseGit commands for Visual Studio Code
https://github.com/mbinic/vscode-tgit
command-palette git keyboard-shortcuts tortoisegit visual-studio-code
Last synced: 3 months ago
JSON representation
TortoiseGit commands for Visual Studio Code
- Host: GitHub
- URL: https://github.com/mbinic/vscode-tgit
- Owner: mbinic
- License: mit
- Created: 2016-10-16T12:23:43.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-04-27T14:04:29.000Z (over 1 year ago)
- Last Synced: 2024-06-17T23:43:40.414Z (5 months ago)
- Topics: command-palette, git, keyboard-shortcuts, tortoisegit, visual-studio-code
- Language: TypeScript
- Size: 108 KB
- Stars: 9
- Watchers: 3
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
- jimsghstars - mbinic/vscode-tgit - TortoiseGit commands for Visual Studio Code (TypeScript)
README
# TortoiseGit commands for Visual Studio Code
## Introduction
Inspired by the [TortoiseGit Toolbar Visual Studio extension](https://github.com/MRCollective/TortoiseGitToolbar), this extension provides commands for launching common TortoiseGit dialogs from within Visual Studio Code.
You can execute these commands either by searching for `TGit` in the Command Palette (`Ctrl+Shift+P`), or via keyboard shortcuts.
## Default shortcuts
Global shortcuts:
* `(G)it (C)ommit` - Ctrl+G, Ctrl+C
* `(G)it (F)etch` - Ctrl+G, Ctrl+F
* `(G)it (L)og` - Ctrl+G, Ctrl+L
* `(G)it (M)erge` - Ctrl+G, Ctrl+M
* `(G)it (P)ull` - Ctrl+G, Ctrl+P
* `(G)it P(u)sh` - Ctrl+G, Ctrl+U
* `(G)it (R)ebase` - Ctrl+G, Ctrl+R
* `(G)it Re(v)ert` - Ctrl+G, Ctrl+V
* `(G)it Stash-L(i)st` - Ctrl+G, Ctrl+I
* `(G)it Stash-P(o)p` - Ctrl+G, Ctrl+O
* `(G)it Stash-S(a)ve` - Ctrl+G, Ctrl+A
* `(G)it (S)witch` - Ctrl+G, Ctrl+S
* `(G)it S(y)nc` - Ctrl+S, Ctrl+Y
* `(G)it Clea(n)up` - Ctrl+G, Ctrl+N
* `(G)it Repository (D)iff` - Ctrl+G, Ctrl+DCurrent file shortcuts:
* `(G)it R(e)solve` - Ctrl+G, Ctrl+E
* `(G)it File (L)og` - Ctrl+Shift+Alt+G, Ctrl+Shift+Alt+L
* `(G)it File (B)lame` - Ctrl+Shift+Alt+G, Ctrl+Shift+Alt+B
* `(G)it File (D)iff` - Ctrl+Shift+Alt+G, Ctrl+Shift+Alt+DBisect commands are also available, but with no preset shortcuts.
**To customize shortcuts go to File -> Preferences -> Keyboard Shortcuts.**
### Shortcut conflicts
Since the default shortcuts will make Ctrl+G (Go To Line) inaccessible, you can change them, or just change the one for "Go To Line" to be e.g. Ctrl+G, Ctrl+G:
```javascript
{ "key": "Ctrl+g Ctrl+g", "command": "workbench.action.gotoLine" }
```## Extension Settings
This extension contributes the `tgit.launcherPath` setting, specifying the full path to `TortoiseGitProc.exe`.
It is set to the default installation path of TortoiseGit, so you might need to adjust it if you installed elsewhere.---
## Running the code
* run `npm install` in the checkout directory to install dependencies
* press `F5` to open a new VSCode window with the extension loaded
* run a command from the command palette by pressing `Ctrl+Shift+P` and typing `tgit`
* set breakpoints inside `src/extension.ts` to debug the extension
* find output from the extension in the debug console
* you can relaunch the extension from the debug toolbar after changing code in `src/extension.ts`
* you can also use `Ctrl+R` to reload the VS Code window with the extension to load any changes---
**Here's to productivity!**