Permalink
Browse files

* Add git scripts

  • Loading branch information...
0 parents commit 42b1020bc347d601ab09c83293d9748d90d869b0 @smtlaissezfaire committed Sep 3, 2008
Showing with 28 additions and 0 deletions.
  1. +17 −0 git-delete-remote-branch
  2. +4 −0 git-rebase-and-commit
  3. +7 −0 git-rebase-with-fetch
@@ -0,0 +1,17 @@
+#!/usr/bin/env ruby
+
+require "rubygems"
+require "colored"
+
+repos = ARGV[0]
+
+if repos
+ puts `git push origin :heads/#{repos}`
+else
+ puts "* Usage:"
+ puts ""
+ puts " git-delete-remote-branch branch-name"
+ puts ""
+ puts "You must enter a repos to delete".red
+ puts ""
+end
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+git-rebase-with-fetch
+echo "* Pushing changes from master"
+git push
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+echo "* Fetching objects"
+git fetch
+echo "* Checking out master"
+git checkout master
+echo "* Rebasing"
+git rebase remotes/origin/master

0 comments on commit 42b1020

Please sign in to comment.