nowfound

Life & fun · July 1, 2020

git-rename-master-branch-to-main

Use git to rename the default branch from "master" to "main" - SixArm/git-rename-master-branch-to-main

git-rename-master-branch-to-main launched on July 1, 2020 with 6 votes, #1,390 of 4,305 launches that month and more than 50% of that year's launches. The site was still online in September 2026, 6 years on.

Does a similar job

all alternatives →
  • Script that changes GitHub default branches to master2020 · github.com · ▲26

    A little script to help you rename your repos' default branches to master. - danirukun/rename-branch

  • Gut – An easy-to-use CLI for Git2023 · gut-cli.dev · ▲314

    Hi Hacker news ! I’m Julien and I built an alternative CLI for Git : gut. Even if I haven’t been coding for a long time (I’m in the first year studying computer science), I’ve always found git to be frustrating. The command naming is inconsistent and git lets you easily shoot yourself in the foot. I made gut, another git porcelain, to solve these issues. It provides a consistent naming of command. To do so, syntax is based on subcommands. For example, to delete a branch, run gut branch rm rather than git branch -d, same to delete a remote (gut remote rm) and so on. Gut also prevents you from…

  • Gitgpt – Natural Language Git2023 · github.com · ▲108

    Hey folks, Here's a quick and dirty tool to use natural language to get git to do what you want. Example: $gitgpt create a new branch called feature/test add all the files and commit with msg creating feature test then push to origin I haven't put it through the wringer yet, however it's worked well with some pretty straight forward day to day git usage.

  • I made a git rebase TUI editor2024 · github.com · ▲115

    I use interactive rebase quite often, and particularly like the editor bundled with IntelliJ. But I do not always work with IntelliJ, and am not 'fluent' with Vim, so I tried to replicate roughly the same rebase experience within a TUI. I used a small TUI OCaml project i made last year. The notable features are: - Move commits up and down, fixup, drop - Rename commits from the editor (without having to stop for a reword during the rebase run) - Visualize modified files along commits - 'Explode' a commit ,creating a commit for each modified file (a thing I found myself doing quite often)…

  • GI
    'git inject' – amend commits other than HEAD2015 · ▲71

    'git inject' is a git alias (see code at the bottom). It is similar to 'git commit --amend', but it allows you to 'inject' your changes into commits further back in history (using 'rebase'). If you're as pedantic as I am about the git history you're about to push into master (as far as I can control it, I strive to keep each commit conceptually coherent), you'll often come to a situation where you have a modification that really belongs in an older commit. It takes a few git commands to stash other changes away, commit the modification, then interactively rebase over some previous commit,…

  • Gut2023 · gut-cli.dev · ▲98

    An easy-to-use git alternative to version-control your code

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, July 2020

the whole month →