• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Page Information

    Loading...
  1. Dashboard
  2. Undefined Space
  3. Skara
  4. git-publish

git-publish

  • Created by Erik Helin, last modified on Sep 04, 2020

Description

git-publish publishes a local branch to a remote repository. git-publish can also optionally act on the information returned by a remote forge when a new branch has been published, for example opening a link returned from a remote forge in the user's web browser.

Usage

$ git publish -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

Examples

Publish the currently active local branch (named "bugfix") to the remote named origin:

$ git publish
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: 
remote: Create a pull request for 'bugfix' on GitHub by visiting:
remote:      https://github.com/edvbld/jdk/pull/new/bugfix
remote: 
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 publish


Publish currently active local branch (named "bugfix") to the remote named origin and open any link returned in a web browser:

$ git publish --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: 
remote: Create a pull request for 'bugfix' on GitHub by visiting:
remote:      https://github.com/edvbld/jdk/pull/new/bugfix
remote: 
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)

Configuration

Configure the web browser that should be used to open links returned by a remote forge ("firefox" in this example):

$ git configure --global publish.browser firefox

Source

Please see GitPublish.java.

Overview
Content Tools
ThemeBuilder
  • No labels

Terms of Use
• License: GPLv2
• Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Kolekti ThemeBuilder Powered by Atlassian Confluence 8.5.21
  • Kolekti ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Kolekti ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 216, "requestCorrelationId": "8f64ecb237a4cca3"}