Browse files

task `gitup` to sync fork with remote (update)

  • Loading branch information...
1 parent aabbeab commit 3de660bab1c857221a9385a2bf4166e5ccbb70b7 pce committed Jan 4, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 build.php
View
9 build.php
@@ -112,6 +112,15 @@ function target_default()
target_test();
}
+
+// task to sync fork with remote (update)
+function target_gitup()
+{
+ // git remote add upstream git://github.com/<user>/<repo>.git
+ system('git fetch upstream');
+ system('git merge upstream/master');
+}
+
// ---------------------------------------------------------------------
// build script
// ---------------------------------------------------------------------

0 comments on commit 3de660b

Please sign in to comment.