git fetch --all
git checkout sprint015
git pull origin sprint015
git checkout -b my-new-feature
git add .
git commit -m "all my feature"
git checkout sprint015
git pull origin sprint015
git checkout my-new-feature
git rebase -i sprint015
| /tmp$ git init test | |
| Initialized empty Git repository in /private/tmp/test/.git/ | |
| /tmp$ cd test | |
| /tmp/test (master #)$ touch a b | |
| /tmp/test (master #)$ ls | |
| a b | |
| /tmp/test (master #)$ git status -z | hexdump -C | |
| 00000000 3f 3f 20 61 00 3f 3f 20 62 00 |?? a.?? b.| | |
| 0000000a | |
| /tmp/test (master #)$ git --version |
git fetch --all
git checkout sprint015
git pull origin sprint015
git checkout -b my-new-feature
git add .
git commit -m "all my feature"
git checkout sprint015
git pull origin sprint015
git checkout my-new-feature
git rebase -i sprint015
| import scalaz._ | |
| object Main { | |
| implicit def setMonoid[A] = new Monoid[Set[A]] { | |
| def append(f1: Set[A], f2: => Set[A]) = f1 union f2 | |
| def zero = Set[A]() | |
| } | |
| def main(args: Array[String]) { |
| ############################################################ | |
| ## TEST GROUP 1: simple events, watching absolute path | |
| ############################################################ | |
| {$ inotifywait -qmr /tmp/inwtest/} | |
| [/tmp/inwtest]$ touch testfile | |
| /tmp/inwtest/ CREATE testfile | |
| /tmp/inwtest/ OPEN testfile |
jackd2, 1.9.9.5+20130622git7de15e7a-1| #!/usr/bin/perl | |
| use lib (split(/:/, $ENV{GITPERLLIB} || "/usr/share/perl/5.14.2")); | |
| use 5.008; | |
| use strict; | |
| use warnings; | |
| use Git; | |
| binmode(STDOUT, ":raw"); |
| /* Software License Agreement (BSD License) | |
| * | |
| * Copyright (c) 2011, Willow Garage, Inc. | |
| * All rights reserved. | |
| * | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted provided that the following conditions | |
| * are met: | |
| * | |
| * * Redistributions of source code must retain the above copyright |
| { | |
| "after":"98248f0e892ce4e4e37411730ac98b53f2aa1261", | |
| "base_ref":"refs/heads/br2", | |
| "before":"0000000000000000000000000000000000000000", | |
| "commits":[ | |
| ], | |
| "compare":"https://github.com/nevik/testrepo/compare/tag2", | |
| "created":true, | |
| "deleted":false, |
GitHub's compare view is available at:
https://github.com/$USER/$REPO/compare/$REV_A...$REV_B
Naturally, $USER and $REPO are the owner (user/organization) and repository names, respectively.
$REV{A,B} are the two sides of the compare view; they can either be a ref in $USER's repository, i.e. the name of a branch, tag or a commit SHA, or it can be a ref in $OWNER's fork of the repository by using the format $OWNER:$REF.
You can get a diff or patch for the result of the compare view by appending .diff or .patch to the URL, respectively.