Lemmy: Bestiverse
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
canpolat@programming.devM to Git@programming.devEnglish · 20 days ago

Archiving git branches as tags

etc.octavore.com

external-link
message-square
0
fedilink
  • cross-posted to:
  • hackernews
10
external-link

Archiving git branches as tags

etc.octavore.com

canpolat@programming.devM to Git@programming.devEnglish · 20 days ago
message-square
0
fedilink
  • cross-posted to:
  • hackernews
I have a spicy git alias that allows me to "archive" old git branches by converting them to tags, making them less visible across git tooling. # ~/.gitconfig [alias] archive-branch = "!f() { \ : git switch; \ local git_branch=${1:-$(git branch --show-current)}; \ git co main && \ git tag archive/$git_branch $git_branch
alert-triangle
You must log in or register to comment.

Git@programming.dev

git@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !git@programming.dev

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Resources

  • Official Git project site
  • Pro Git book

Rules

  1. Follow programming.dev rules
  2. Be excellent to each other, no hostility towards users for any reason
  3. No spam of tools/companies/advertisements. It’s OK to post your own stuff part of the time, but the primary use of the community should not be self-promotion.

Git Logo by Jason Long is licensed under the Creative Commons Attribution 3.0 Unported License.

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 8 users / week
  • 73 users / month
  • 353 users / 6 months
  • 1 local subscriber
  • 4.1K subscribers
  • 150 Posts
  • 212 Comments
  • Modlog
  • mods:
  • Ategon@programming.dev
  • canpolat@programming.dev
  • Jason Novinger@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org