]> oss.titaniummirror.com Git - git-utils.git/blobdiff - git-publish-branch.1
Add man pages for git-local and git-publish-branch.
[git-utils.git] / git-publish-branch.1
diff --git a/git-publish-branch.1 b/git-publish-branch.1
new file mode 100644 (file)
index 0000000..c16e5d9
--- /dev/null
@@ -0,0 +1,41 @@
+.\"
+.TH "git-publish-branch"
+.SH NAME
+git-publish-branch \- publish a local branch to a remote repository
+
+.SH SYNOPSIS
+\fBgit-publish-branch\fR [-d|-h] [\fIBRANCH\fR] [\fIREPOSITORY\fR]
+
+.SH "DESCRIPTION"
+
+.PP
+\fBgit-publish-branch\fR publishes a local branch to a remote repository.  The
+selected branch is pushed to the remote repository and the local branch is
+reset as a tracking branch for the new remote branch.
+
+If the -d option is specified, the branch is removed from the remote repository
+and the local branch is unset as its tracking branch.
+
+.SH "OPTIONS"
+
+.TP
+-d
+Include this switch to delete (unpublish) a branch.
+
+.TP
+-h
+Display help message.
+
+.TP
+\fIBRANCH\fR
+The branch to publish or unpublish.  If not provided, meaning the repository
+is also not provided, the branch defaults to the one currently checked out.
+
+.TP
+\fIREPOSITORY\fR
+The name of the remote repository.  If not provided, the repository remote
+defaults to origin.
+
+This manual page was written by David Eriksson <twogood@users.sourceforge.net>.
+.SH "SEE ALSO"
+git-branch(1) git-checkout(1) git-remote(1)