Skip to content

Instantly share code, notes, and snippets.

View ivan-nikitovic's full-sized avatar

Ivan Nikitovic ivan-nikitovic

View GitHub Profile
@frontmesh
frontmesh / git-merge
Last active December 17, 2015 06:48
Git-merge as a bash script, requires nodejs for execution. Make this script executable chmod +x git-merge, than do a copy/move to /usr/bin "git-merge [branch]"
#!/usr/bin/node
var sys = require('sys')
, exec = require('child_process').exec
, current_branch
, target_branch = process.argv[2];
function puts (error, stdout, stderr){
sys.print('stdout: ' + stdout);
sys.print('stderr: ' + stderr);