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

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

git-backport

  • Created by Erik Helin, last modified by Ludvig Janiuk on Apr 01, 2022

Description

git-backport fetches a commit from a remote repository and applies it on top of the current branch. Conceptually git-backport is similar to the following two Git commands:

  1. git fetch <REMOTE-REPO> <HASH>
  2. git cherry-pick FETCH_HEAD

git-backport will always use the commit message "Backport <HASH>" for the new commit to make it easier to create a "backport pull request" (for example via git-pr-create).

Usage

git-backport [options] --from  <REMOTE-REPO> <HASH>

Examples

git backport --from https://github.com/openjdk/jdk9 8f73a84a15dacfa2cfa6caac3c2a7f1edad0b00f

Configuration

 git-backport [options] <HASH>
-u, --username NAME Username on host
--from REPO Repository to backport from
--verbose Turn on verbose output
--debug Turn on debugging output
--version Print the version of this tool
-h, --help Show this help text

Source

See GitBackport.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": 171, "requestCorrelationId": "dba94179c53f1c11"}