All Projects → demian85 → Git Watcher

demian85 / Git Watcher

Licence: mit
Git GUI desktop app that shows real-time diff file information for working directory and index

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Git Watcher

Popcorn Desktop
Popcorn Time is a multi-platform, free software BitTorrent client that includes an integrated media player ( Windows / Mac / Linux ) A Butter-Project Fork
Stars: ✭ 6,470 (+3821.21%)
Mutual labels:  nwjs
Nwjs rpi
[NW.js port for Raspberry Pi] binary compiled for the ARMv6 used in Raspberry Pi (compatible with RPi 2 and RPi 3)
Stars: ✭ 91 (-44.85%)
Mutual labels:  nwjs
Create Nw React App
Create NW.js React apps with no build configuration.
Stars: ✭ 111 (-32.73%)
Mutual labels:  nwjs
Electron Log
Just a simple logging module for your Electron application
Stars: ✭ 765 (+363.64%)
Mutual labels:  nwjs
Nw Vue Cli Example
NW.js, Vue-CLI 4, Vue-DevTools
Stars: ✭ 63 (-61.82%)
Mutual labels:  nwjs
Nw Ninja
A minimalistic NW.js starter project for ninjas
Stars: ✭ 101 (-38.79%)
Mutual labels:  nwjs
Qilin App
Fully hackable text editor developed for exact sciences with built-in KaTeX and AsciiMath support. Extensible via plugins and themes. Exportable as HTML, PDF and GFM.
Stars: ✭ 336 (+103.64%)
Mutual labels:  nwjs
Toby
A YouTube player for the desktop
Stars: ✭ 136 (-17.58%)
Mutual labels:  nwjs
Greenworks
a node.js plugin to integrate nw.js/electron games with steamworks
Stars: ✭ 1,186 (+618.79%)
Mutual labels:  nwjs
Nw.js
Call all Node.js modules directly from DOM/WebWorker and enable a new way of writing applications with all Web technologies.
Stars: ✭ 38,611 (+23300.61%)
Mutual labels:  nwjs
Duckietv
A web application built with AngularJS to track your favorite tv-shows with semi-automagic torrent integration
Stars: ✭ 942 (+470.91%)
Mutual labels:  nwjs
Tiddlydesktop
A custom desktop browser for TiddlyWiki 5 and TiddlyWiki Classic, based on nw.js
Stars: ✭ 1,075 (+551.52%)
Mutual labels:  nwjs
Qqtools
QQ群工具,提供桃叭监听,48系成员直播监听,48系成员信息监听,微博监听,群成员自动欢迎等功能。
Stars: ✭ 106 (-35.76%)
Mutual labels:  nwjs
Iohook
Node.js global keyboard and mouse listener.
Stars: ✭ 714 (+332.73%)
Mutual labels:  nwjs
Kiwitalk
An UNOFFICIAL cross-platform KakaoTalk client written in TypeScript (React)
Stars: ✭ 123 (-25.45%)
Mutual labels:  nwjs
Nwjs Ffmpeg Prebuilt
FFmpeg prebuilt binaries for NW.js / Chromium
Stars: ✭ 465 (+181.82%)
Mutual labels:  nwjs
Nw.js Armv7 Binaries
NW.js ARMv7 binaries. Instructions for running and building the executable.
Stars: ✭ 92 (-44.24%)
Mutual labels:  nwjs
Streamlink Twitch Gui
A multi platform Twitch.tv browser for Streamlink
Stars: ✭ 2,059 (+1147.88%)
Mutual labels:  nwjs
Cross Platform Desktop Applications
Code examples for the book "Cross Platform Desktop Applications"
Stars: ✭ 134 (-18.79%)
Mutual labels:  nwjs
Nuwk
Nuwk! makes it easy to create Mac Applications based on node-webkit, simplifying testing and building procedures. It takes care of creating the executable, attaching the app icon and configuring the plist file accordingly.
Stars: ✭ 106 (-35.76%)
Mutual labels:  nwjs

Introduction

Git Watcher is a multi-platform desktop app written in pure HTML and Javascript using nw.js (node-webkit).

It shows diff information about local staged/unstaged files and allows you to commit changes. UI is updated in real-time by detecting file changes and git index changes. Submodules also inform changes to their parent module.

It also organizes repository submodules in tabs, so that you can work easily with them without the need of having multiple git gui instances or shells.

In my opinion, the native git gui app is awful and lacks a lot of features. This app aims to outstand it :)

Features

  • Real-time multiple file diff information with line numbers and syntax highlighting
  • Allows you to work with submodules organized in tabs
  • Support for hunk and line staging
  • Allows you to open files by clicking on its name or lines numbers. You can even use your preferred editor!
  • Shows current branch information: upstream branch and ahead/behind commit count
  • Menu bar with shortcuts, configuration options and utilities
  • Shows commit log per module
  • System Tray support
  • Support for custom tools (external commands)

Screenshots (v0.5.5)

Overview 1 Overview 2 Overview 3 Overview 4 Overview 5 Overview 6 Overview 7

Download

Previous versions

Please consider downloading the proper build according to your distribution. See Troubleshooting if you cannot run the app.

Someone please help me to create Windows & Mac binaries!

How to run the app

Just extract file contents and execute ./gitw.

You can also:

  • Create a desktop shortcut :P
  • sudo npm link. A link to the app will be created in /usr/local/bin, so you can run the app using gitw command. If it's a valid Git repository, the current working directory is used by default.

Configuration options

The application stores configuration data as a JSON file in ~./config/gitw/config.json. Certain config values can be modified using the app options menu. Until the UI provides a complete way of customizing these values, you can edit the file yourself.

Current config file structure EXAMPLE:

{
	"defaultRepository": "~/www/myproject",    // default git repository to load on startup
	"debugMode": false,    // enable debugging
	"diff": {
		"defaultMaxFiles": 6,		// maximum number of files to display by default (too many files may slow down application)
		"contextLines": 4,
		"ignoreEolWhitespace": true,
		"highlight": {
			"enabled": true,
			"byFileExtension": {    // enable/disable syntax highlighting by file extension
				".js": true,
				".php": true
			}
		}
	},
	"uiOptions": {
		"showCommitLog": true		// Show last 10 commits for each module
	},
	"external": {    // custom commands
		"fileOpener": {    // handle file opening, empty path uses system default application
			"path": "/usr/local/netbeans-8/bin/netbeans",
			"args": ["--open", "$FILE:$LINE"]    // $FILE is replaced by the file path. $LINE is replaced by line number (if available)
		},
		"directoryOpener": {    // handle directory opening, empty path uses system default application
			"path": "",
			"args": []
		}
	},
	"tools": [	// custom tools to be included in the menu bar under the "Tools" menu
		{
			"name": "My custom command",
			"cmd": "/path/to/script.sh",
			"args": []
		}
	],
	"shortcuts": {	// customize shortcuts, you can combine the following modifiers with a letter: cmd, shift, ctrl, alt
		"repositoryOpen": "ctrl+shift o",
		"repositoryClose": "ctrl+shift c",
		"repositorySubmoduleUpdate": "ctrl+shift u",
		"repositorySubmoduleUpdateRecursive": "ctrl+shift r",
		"repositoryExplore": "ctrl+shift e",
		"repositoryBrowse": "ctrl+shift k",
		"repositoryRefresh": "F5",	// F1-F11 keys are allowed. F12 is reserved for devtools
		"repositoryQuit": "ctrl q",
		"branchCreate": "ctrl n",
		"branchCheckout": "ctrl o",
		"branchDelete": "ctrl d",
		"commitAmend": "ctrl BackSpace",
		"commitStageAll": "ctrl t",
		"commitUnstageAll": "ctrl u",
		"stashSave": "ctrl s",
		"stashPop": "ctrl p"
	}
}

TODO

I'm working on the following features (your help will be much appreciated!)

  • Rename branches
  • Keyboard navigation between files
  • Delete, edit and add remotes
  • More configuration options
  • Better syntax highlighting
  • Hooks: allow to add external commands to interact with branches or files.

Create your own build

Please read node-webkit wiki for details on how to run apps.

Requirements:

Then:

  • Clone repo and run npm install or just run npm install gitw.
  • Install nw-gyp: npm install -g nw-gyp.
  • Rebuild git-utils dependency based on the node-webkit version you are running. Eg: cd node_modules/git-utils && nw-gyp rebuild --target=0.12.0.
  • Run the app! /opt/node-webkit/nw /path/to/gitw.

Also, you will find two helper scripts: build.sh and build-new.sh (deprecated). Those creates distributable packages for Linux. It asumes you have node-webkit installed on /opt/node-webkit.

Troubleshooting

  • The solution of lacking libudev.so.0
  • ENOSPC error: You may run into that error when browsing large repositories. You need to increase the maximum number of watches for inotify: echo fs.inotify.max_user_watches=65536 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p. That should be enough.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].