`git cherry` and remote branch removal hints in Git/notes.org.
authorW. Trevor King <wking@drexel.edu>
Wed, 11 May 2011 16:11:31 +0000 (12:11 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 11 May 2011 16:12:06 +0000 (12:12 -0400)
posts/Git/notes.org

index ef57a6254cb0b27efa7c95aeb2d64a2e8f997e21..d66f172a77d519e3c35eaadbd20ca5ec29799a35 100644 (file)
@@ -739,6 +739,23 @@ previous commit
 Now you are wiser, because you know that it happened 940 revisions
 before v0.99.
 
+** List unmerged commits
+
+To see what's outstanding in a given branch
+
+    : $ git cherry [-v] [<upstream> [<head> [<limit>]]]
+
+The =-v= option prints summaries as well as the usual commit hashes.
+
+** Remove a remote branch
+
+If you want to delete a branch from a repository to which you only
+have push access, use:
+
+    : git push repository :branch
+
+after deleting the branch in your local repository.
+
 * Troubleshooting
 ** Git commit hangs with no output