Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Hacker News
Hacker News
@h4ckernews@mastodon.social  ·  activity timestamp 2 days ago

Archiving Git Branches as Tags

https://etc.octavore.com/2025/12/archiving-git-branches-as-tags/

#HackerNews #Archiving #Git #Branches #as #Tags #Git #Tags #Version #Control #Software #Development #Git #Branch #Management

et cetera

Archiving git branches as tags

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
  • Copy link
  • Flag this post
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-alpha.40 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct