• Stars
    star
    244
  • Rank 165,885 (Top 4 %)
  • Language
    Python
  • Created about 13 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Provides Git commands for the Side Bar of Sublime Text.

Description

Provides git commands on Side Bar of Files and Folders for Sublime Text. For sublime text see: http://www.sublimetext.com/

It should work with files names in any language.

This plugin is a port of the "Komodin" extension for komodo edit. See: https://github.com/titoBouzout/komodo-komodin-git

Usage

  • Right click on "multiple/single" "files/folders" of the "tree" sidebar to apply commands on selected files which maybe are from different repositories.

  • To apply commands to focused document use the document context menu.

  • Tip: If a command sends output to a tab ( example a diff ), pressing F5 on that tab: will execute the command again and refresh the tab with the new contents ( example the new computed diff )

Installation

Download or clone the contents of this repository to a folder named exactly as the package name into the Packages/ folder of ST.

Provides the following commands

Add & Commit
  o git add -- "/selected/paths/files/or/and/folders"
  o git commit -m "promptMessage" -- "/selected/paths/files/or/and/folders"
Add & Commit & Push
  o git add -- "/selected/paths/files/or/and/folders"
  o git commit -m "promptMessage" -- "/selected/paths/files/or/and/folders"
  o git push

Commit
  o git commit -m "promptMessage" -- "/selected/paths/files/or/and/folders"
Commit Undo
  o git reset --soft HEAD~1

Commit Amend
  o git commit --amend -C HEAD -- "/selected/paths/files/or/and/folders"
Commit All
  o git commit -a -m "promptMessage"

Status
  o git status --untracked-files=all -- "/selected/paths/files/or/and/folders"

Diff

	all changes since the last commit
	  o git diff HEAD -- "/selected/paths/files/or/and/folders"
	changes that have not been staged
	  o git diff  -- "/selected/paths/files/or/and/folders"
	changes that are staged but not committed
	  o git diff --staged -- "/selected/paths/files/or/and/folders"
	between the index and last commit
	  o git diff --cached -- "/selected/paths/files/or/and/folders"
	between remote and last local commit (origin/master..)
	  o git diff origin/master.. -- "/selected/paths/files/or/and/folders"
	between last local commit and remote (..origin/master)
	  o git diff ..origin/master -- "/selected/paths/files/or/and/folders"
	between the two latest tags
	  o git diff "previousTag".."lastTag" -- "/selected/paths/files/or/and/folders"

Log stat last 30
  o git log -n 30 --stat --graph -- "/selected/paths/files/or/and/folders"

	Log stat full
	  o git log --stat --graph -- "/selected/paths/files/or/and/folders"
	Log extended last 30
	  o git log -n 30 -p -- "/selected/paths/files/or/and/folders"
	Log extended full
	  o git log -p -- "/selected/paths/files/or/and/folders"
	Log since last tag
	  o git log "lastTag"... --stat --graph --  "/selected/paths/files/or/and/folders"
	Log since last push
	  o git log origin/master... --stat --graph -- "/selected/paths/files/or/and/folders"
	Log between the two latest tags
	  o git log "prevToLastTag".."lastTag" --stat --graph -- "/selected/paths/files/or/and/folders"

Blame
  o git blame -- "/selected/paths/files/NOT/folders"

Auto-Tag
  o git tag "YYMMDD.Version"

	Tag Add
	  o git tag "promptMessage"
	Tag Remove
	  o git tag -d "promptMessage"
	Tag List
	  o git tag -l

Revert Discard changes to tracked
  o git checkout HEAD -- "/selected/paths/files/or/and/folders"

	Revert Discard changes to tracked, clean untracked
	  o git checkout HEAD -- "/selected/paths/files/or/and/folders"
	  o git clean -f -d -- "/selected/paths/files/or/and/folders"
	Revert Discard changes to tracked, clean untracked, unstage
	  o git checkout HEAD -- "/selected/paths/files/or/and/folders"
	  o git clean -f -d -- "/selected/paths/files/or/and/folders"
	  o git reset HEAD -- "/selected/paths/files/or/and/folders"
	Revert Discard changes to tracked, unstage, clean untracked
	  o git checkout HEAD -- "/selected/paths/files/or/and/folders"
	  o git reset HEAD -- "/selected/paths/files/or/and/folders"
	  o git clean -f -d -- "/selected/paths/files/or/and/folders"
	Revert Unstage
	  o git reset HEAD -- "/selected/paths/files/or/and/folders"

Checkout to
  o git checkout promptMessage -- "/selected/paths/files/or/and/folders"
Checkout repo to
  o cd repoPath
  o git checkout promptMessage

Push
  o git push

	Push, Push Tags
	  o git push && git push --tags
	Push Tags
	  o git push --tags
	Push with options…
	  o promptMessage

	Pull
	  o git pull
	Pull with options…
	  o promptMessage

	Fetch
	  o git fetch
	Fetch with options…
	  o promptMessage

	Remote add
	  o git remote add promptMessage
	Configure default remote
	  o git config branch.promptBranch.remote promptRemoteName

Clone
  o git clone promptMessage
Init
  o git init

Add
  o git add -- "/selected/paths/files/or/and/folders"
Remove
  o git rm -r -f -- "/selected/paths/files/or/and/folders"
Remove Keep Local
  o git rm -r --cached -- "/selected/paths/files/or/and/folders"

Open Git Ignore
Add to Git Ignore

Git GUI
Gitk
Liberal Git Command

Todo

  • Tag commands not yet ported

Source-code

https://github.com/titoBouzout/SideBarGit

Forum Thread

http://www.sublimetext.com/forum/viewtopic.php?f=5&t=3405

Contribute

Consider make a contribution

More Repositories

1

SideBarEnhancements

Side Bar Tools and Enhancements for Sublime Text. Files and folders.
Python
2,186
star
2

Dictionaries

Hunspell UTF8 dictionaries. These work with Sublime Text. [Spell check]
Python
1,476
star
3

Tag

Collection of packages about HTML/XML tags.
Python
429
star
4

BufferScroll

Remember, restore and sync scroll, bookmarks, marks, folds and cursors. keys: multiple columns one buffer, follow mode, split, screen, pages, synchronize vertical and typewriter scrolling
Python
312
star
5

WordCount

Real-time Word, Char, Line and Page counter, in the status-bar for the document, line or selection. Sublime Text
Python
290
star
6

EncodingHelper

Guess encoding of files, show in status bar, convert to UTF-8 from a variete of encodings..
Python
178
star
7

Open-Include

Will open file paths found under the cursor with ALT+D
Python
133
star
8

SideBarFolders

For when a project system is too much.
Python
82
star
9

ServiceWorkerFullVideoBuffer

A service worker that buffers a full video, so when the video tag ask for ranges, these can be satisfied. Play + pause = buffer the whole video.
JavaScript
52
star
10

FindResultsApplyChanges

Edit just there in the "Find Results" buffer, merge changes back to the files.
Python
50
star
11

solid-windowed

Given a list of items, only render what's visible on the screen while allowing scrolling the whole list.
JavaScript
43
star
12

komodo-komodin-git

A komodo Git extension
JavaScript
16
star
13

Toolbar

The missing ST toolbar ( with emojis ツ )
JavaScript
14
star
14

Camaleon

Cycle chrome theme and colour schemes with F8
Python
10
star
15

PreventFakeClones

Prevents opening the same file twice, if does not share a buffer (ie is not a clone/duplicate or cloned view/tab/file).
Python
8
star
16

pota

pota is a small and pluggable Reactive Web Renderer for Reactive Libraries.
JavaScript
3
star
17

solid-media-linkify

Given a string it returns links, images, videos, audio as tags and also emojis like `🦆` as 🦆.
JavaScript
3
star
18

dom-syntax-sugar

A pluggable babel plugin for adding syntax sugar to JSX.
JavaScript
2
star
19

solid-tooltip

Directive for displaying tooltips on SolidJS components given a `title` attribute.
JavaScript
2
star
20

locationbar2-utf8

Locationbar² with full support for UTF8 URLs
CSS
2
star
21

angelia.io

WebSockets Server and Client for node.js and the browser
JavaScript
2
star
22

Android

myAPI
Java
1
star
23

on-exit

Calls functions before node exits. A node exit handler.
JavaScript
1
star
24

write-effect

It tracks changes, and deep changes on an object. Runs a callback whenever something changes, an effect.
JavaScript
1
star
25

Format

Sublime Text Plug-in for formatting code or text on selections or files via any cli formatter you wish
Python
1
star
26

kompiler

A framework agnostic compiler/transpiler currently used mostly for solidjs projects. For personal use and for friends. Forever work in progress.
JavaScript
1
star
27

dom-flair

Solve any or most html layout issues in intuitive ways via attributes without having to think much about CSS. For example <div col grow></div>. That's it.
CSS
1
star
28

komodo-tab-undo-close

A menuitem on tab context menu to reopen the last closed tab (undo close tab).
Shell
1
star
29

komodo-nav

Experimental folder browsing and bookmarks: for Komodo.
JavaScript
1
star
30

komodo-garden

many remotes, on many trees, all asynch
JavaScript
1
star
31

solid-create-effect-development

Detects possible recursion on createEffect.
JavaScript
1
star
32

server

Press F12 on any Windows Explorer folder to fire a node server. autohotkey + batch + node
JavaScript
1
star