Date: Thu, 28 Mar 2024 22:03:49 +0000 (UTC) Message-ID: <1200526218.1223.1711663429963@34fc92c9345b> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_1222_931568189.1711663429963" ------=_Part_1222_931568189.1711663429963 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
git-publish
publishes a local branch to a remote repository=
. git-publish
can also optionally act on the information retur=
ned by a remote forge when a new branch has been published, for example ope=
ning a link returned from a remote forge in the user's web browser.
$ git p= ublish -h usage: git-publish [options] [<ORIGIN>] -q, --quiet Silence all output --browse Open link returned by remote in a web browser --verbose Turn on verbose output --debug Turn on debugging output --version Print the version of this tool -h, --help Show this help text
Publish the currently active local branch (named "bugfix") to the remote=
named origin
:
$ git p= ublish Enumerating objects: 21, done. Counting objects: 100% (21/21), done. Delta compression using up to 12 threads Compressing objects: 100% (7/7), done. Writing objects: 100% (11/11), 772 bytes | 772.00 KiB/s, done. Total 11 (delta 3), reused 0 (delta 0), pack-reused 0 remote: Resolving deltas: 100% (3/3), completed with 3 local objects. remote:=20 remote: Create a pull request for 'bugfix' on GitHub by visiting: remote: https://github.com/edvbld/jdk/pull/new/bugfix remote:=20 To git@github.com:edvbld/skara.git * [new branch] bugfix -> bugfix Branch 'bugfix' set up to track remote branch 'bugfix' from 'origin'.
Publish the currently active local branch (named "bugfix") to the remote= named origin and silence all output:
$ git p= ublish --quiet
Publish currently active local branch (named "bugfix") to the remote nam= ed origin and open any link returned in a web browser:
$ git p= ublish --browse Enumerating objects: 21, done. Counting objects: 100% (21/21), done. Delta compression using up to 12 threads Compressing objects: 100% (7/7), done. Writing objects: 100% (11/11), 772 bytes | 772.00 KiB/s, done. Total 11 (delta 3), reused 0 (delta 0), pack-reused 0 remote: Resolving deltas: 100% (3/3), completed with 3 local objects. remote:=20 remote: Create a pull request for 'bugfix' on GitHub by visiting: remote: https://github.com/edvbld/jdk/pull/new/bugfix remote:=20 To git@github.com:edvbld/skara.git * [new branch] bugfix -> bugfix Branch 'bugfix' set up to track remote branch 'bugfix' from 'origin'.
(the link https://github.com/edvbld/jdk/pull/new= /bugfix is now opened in the user's web browser)
Configure the web browser that should be used to open links returned by = a remote forge ("firefox" in this example):
$ git c= onfigure --global publish.browser firefox
See GitPublish.java.