Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in
A
Algorithms Library Toolkit Core
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 43
    • Issues 43
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Registry
    • Registry
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Algorithms Library Toolkit
  • Algorithms Library Toolkit Core
  • Wiki
  • archive_branches

archive_branches

Last edited by Ing. Jan Trávníček Sep 21, 2015
Page history

Eperimental or dropped features can be archived as a reference (see git update-ref for a documentation). Refs can be pushed to the repository normally by push (see git push for a documentation). Refs can be fetched from the repository normally by fetch (see git fetch for a documentation).

Example:

  • git update-ref refs/archive/bfdBacktrace bfdBacktrace will create a reference named refs/archive/bfdBacktrace from a local branch bfdBacktrace

  • git push origin refs/archive/bfdBacktrace:refs/archive/bfdBacktrace will push a local reference to the remote

  • git fetch origin refs/archive/bfdBacktrace:refs/archive/bfdBacktrace will fetch the remote reference from the remote

One can then drop archive branches and archive references. Commits are safe but the history is cleaner.

Archived branches can be listed with git ls-remote

  • git ls-remote origin will list all remote references in the remote
Clone repository
  • archive_branches
  • cmake generator
  • codestyle
  • Home
More Pages

New Wiki Page

Tip: You can specify the full path for the new file. We will automatically create any missing directories.