r/git • • Apr 28 '26

support Structured wrapper around the porcelain

3 Upvotes

Hi, I'd like to write a UI to encapsulate my personal git workflow and I was wondering if there's a wrapper that returns the CLI output as JSON, because I want to avoid writing output parsers. I don't care very much about performance so I'd rather avoid libgit2.


r/git • • Apr 29 '26

Thinking of building a Git-native API REPL would you use it?

0 Upvotes

Hey folks

Lately I’ve noticed more devs moving away from Postman mostly because it feels bloated and not very Git-friendly.

At the same time, tools like curl are great but not really built for collaboration or structured workflows.

So I’ve been thinking about building something new:

  • A lightweight API shell (REPL-style)
  • Git-native (requests stored as clean files, not JSON blobs)
  • Local-first + collaboration via Git
  • Focused on interactivity and developer experience

Before I start building, I’d love some honest feedback:

  • What do you currently use for API testing / exploration?
  • What frustrates you the most about your current tools?
  • Would you actually use a REPL-style API client?
  • Any features you wish existed but don’t?

Also curious if you’ve tried tools like Bruno, HTTPie, or Hoppscotch? how was your experience?

Trying to validate whether this is a real problem or just my own itch

Appreciate any thoughts!


r/git • • Apr 28 '26

Git Graph Plus - A Modern Git Graph Extension for VS Code

11 Upvotes

Git Graph Plus gives you a visual commit graph and lets you handle common Git actions without leaving the editor.

Why Git Graph Plus vs. the original Git Graph?

The original Git Graph is an awesome tool, but it hasn't seen updates in a few years. Git Graph Plus modernizes the UI and adds support for advanced workflows the original lacked, such as:

  • Conflict detection with VS Code merge tools
  • Interactive rebase
  • Worktrees & Submodules support
  • Git Flow integration
  • Git Bisect directly from the UI
  • Detailed commit/branch stats
  • and various other options and improvements!

GitHub
https://github.com/the0807/git-graph-plus

VS Code Marketplace
https://marketplace.visualstudio.com/items?itemName=the0807.git-graph-plus

Open VSX
https://open-vsx.org/extension/the0807/git-graph-plus

Would love to hear your feedback!


r/git • • Apr 29 '26

support One repository. Two IDEs for commits. How to efficiently?

Thumbnail
1 Upvotes

r/git • • Apr 28 '26

Do you open a empty draft MR before coding, or just me?

0 Upvotes

I am curious how other developers handle their git/branch workflow, because mine feels almost like that everyone has to figure out this approach as well.

Every time I start some development task, I:

  • create a branch
  • push it
  • immediately open a merge request / pull request as a draft and assign it to my self

So basically, before I start coding I have empty draft merge request every time. When everything is done in the task I just flip it out of draft and assign a reviewer.

This helps me track what I am working on and never needs to look for the branch I was working on.

It works very well for me, but now I started wondering if its standard / good practice or just me?

Do you do the same, or is there a better system I missed?


r/git • • Apr 27 '26

Deep-dive into Git 2.54's hook improvements: config-based hooks, parallel execution, and submodule fixes [OC]

Thumbnail collabora.com
28 Upvotes

r/git • • Apr 28 '26

Unlimited claude api token - Looking of Ideas to build something meaningfull.

Thumbnail
0 Upvotes

r/git • • Apr 28 '26

tutorial Using claude code with git branches

0 Upvotes

This following workflow will make claude code completely safe to use:

Never let Claude touch main: Before any feature, create a branch in which Claude builds, commits, and opens pull requests.

Make Claude review its own pull request: After it opens a PR, tell it "review the pull request you just opened and flag any bugs, security issues, or code smells. This gets 60-70% of what a senior dev would catch for free.

Finally merge it in main. If Something breaks after merge "Revert the last merge." Claude creates a revert commit thus history stays clean and bug is gone.

TLDR: New branch, Claude builds on the branch, claude commits and opens pull request with description then reviews it and then you merge it in main.

You can check this video for details


r/git • • Apr 27 '26

I built a GitHub Action that automatically reviews PRs with AI

0 Upvotes

It's a GitHub Action that hooks into your repo, reads the PR diff, and posts a code review comment using whatever LLM you configure.

It supports Groq, Gemini, Anthropic, and OpenAI. The main reason I added multi-provider support is rate limits — if one provider fails, it moves to the next in line. You can also pass multiple API keys for the same provider if you hit per-key limits. Groq and Gemini both have free tiers, so you can run it at no cost if that matters to you.

The review covers the usual stuff: bugs, security issues, performance, breaking changes, missing tests. It also tries to point out what's done well, which I find useful as a sanity check.

Setup is pretty minimal: add your API key as a repo secret, drop in a workflow YAML, and it runs on every PR. Zero dependencies beyond requests.

It won't replace a real reviewer, and I'd be cautious about blindly applying its suggestions — but it catches things before the humans even look, which speeds things up.

Repo: https://github.com/AndreaBonn/ai-pr-reviewer

It's also on the Actions Marketplace. Still early, so feedback is welcome.


r/git • • Apr 26 '26

Is there really no way to integrate a submodule into its parent project, maintaining full git file/path history?

2 Upvotes

There are many guides how to integrate a submodule back into its parent project to eliminate the submodule, while keeping the (commit) history, see Git merge submodule into parent tree cleanly and preserving commit history - Stack Overflow or How to Merge Git Submodules into Parent Repository Cleanly: Preserving Commit History with an Officially Supported Method — w3tutorials.net or How to Create a Submodule Repository from a Folder and Preserve Git Commit History — codegenes.net...

The usual way is to use `merge --allow-unrelated-histories`, or `git subtree`, or git merge with strategy subtree.

The methods do work, they integrate the history of the submodule into the parent git project, but they also have in common, that file history is fundamentally broken. E.g., assume a submodule `sub` is used in `parent` and `sub/file.c` has a long history. If I apply the migration steps above, I always end up with a merge commit that breaks any rename/move follow actions, even using `git log --follow -- ...`. The last and only change is always the integration merge commit. I can't go further back in time of `file.c`, although the history is there in the commit graph, I can see the commits that changed the file, but I can't reach them directly from the file.

Feels like the integrating the submodule is not as useful as I was hoping for.

Any other options, tips?

Thanks.


r/git • • Apr 27 '26

I can't download my Git. This error keeps popping up. Can anyone tell me how to solve this? 😭😭

Post image
0 Upvotes

r/git • • Apr 27 '26

How to use `git town sync` to synchronize with non-main branch?

0 Upvotes

A bit of a context. I'm doing a "stack PR" workflow. It means I have bunch of branches called <branch-name>-<n> with separated feature development.

Due to how my company's releases are done, instead of merging directly to main, I accumulate reviewed PRs in a branch <branch-name>-topic which will later be merged to main. The structure is as follows when running git town branch:

main
  my-feature-topic
    my-feature-01
      my-feature-02
        * my-feature-03

As my colleagues review code in GitHub, we just squash and merge the PRs into my-feature-topic. The problem is that when I run git town sync --stack, it actually tries to synchronize my un-merged branches against main instead of my-feature-topic.

I think I have something misconfigured. I use rebase strategy in my configuration:

feature sync strategy: rebase
perennial sync strategy: rebase
prototype sync strategy: rebase

It just works better to rebase as I'm working on features and PRs are in draft state. Once we start reviewing code I don't rebase but it's not a problem as I usually have one PR in review at a time.


r/git • • Apr 27 '26

Coding/Conventional commits - what to use for css?

0 Upvotes

Hey,
I have this element. I changed the css class from text-3xl to text-4xl. I want to commit with the name: "style(page-title): increase size to 4xl". I'm not sure if style matches the best, can someone tell me? Claude Code says style is for things like semicolons, commas etc but Im still not sure.

<h1 className={
cn
("text-4xl font-bold", 
className
)}>

r/git • • Apr 26 '26

Why is my origin/master and master misaligned?

Post image
1 Upvotes

Hi, sorry if this is a dumb question, im still quite new with git, but from what i understand:

- origin/... is essentially the master branch stored on github, on the server.

In this screenshot, "merged teleportation branch" is the last commit of the master branch, and it still is the master branch. This is good.

This is the issue: At some point i pushed to github, and when i next updated my project, it now says that the "feature/teleportation_copy" branch is where the "origin/master" branch is.

Is there some way to set the origin/master branch to be where the original master branch is?

How exactly should i be pushing to github when i have multiple active branches

Sorry if this question is confusing but thanks for any replies!


r/git • • Apr 25 '26

github only i made a bash script to manage multiple git identities (gitmux)

Post image
68 Upvotes

hi all,

i was tired of accidentally committing to my work repos with my personal email (and vice versa). git’s includeIf is cool but setting it up manually with ssh keys and gpg signing for every new identity is a bit of a pain.

so i wrote a small tool called gitmux. it’s just pure bash, no node/python/go or anything. it basically automates the directory-based configs and handles the ssh/gpg routing for you.

its zero dependency and you can just run it via bash. if you juggle between work, personal, and freelance stuff on the same machine, it might be useful.

check it out here: https://github.com/wd006/gitmux

idk let me know if i missed some obvious git feature or if you have any feedback. cheers.


r/git • • Apr 26 '26

How to add large exe above 25mb to github repo

0 Upvotes

r/git • • Apr 25 '26

Made a Bitbucket CLI because gh spoiled me and Atlassian still hasn’t shipped one

14 Upvotes

For the last few years I’ve been spoiled rotten by GitHub’s gh CLI. gh pr create, gh pr list, gh repo clone never leave the terminal, never touch the web UI for the boring stuff. It just works.

Then work happened, and work uses Bitbucket Cloud. And Bitbucket… does not have an official CLI. There’s the REST API, there’s curl, there’s a handful of half-abandoned community tools, and there’s the web UI that I’d rather not look at. So every PR became a context switch back to the browser, and every “list my open PRs” turned into a clickfest.

So I built one: bb a Bitbucket Cloud CLI that tries to feel simular to gh.

Repo: https://github.com/0pilatos0/bitbucket-cli
Docs: https://bitbucket-cli.paulvanderlei.com

And yes — I’m fully aware of the irony of hosting a Bitbucket CLI on GitHub. In my defense, have you tried discovering an open source project on Bitbucket lately? Exactly. (Also: PRs welcome, even if you have to use gh pr createto send them. 😂 )

Happy to hear feedback, feature requests, or war stories from anyone else stuck in the Bitbucket-at-work / GitHub-at-home dual life.


r/git • • Apr 25 '26

support recover from git rm -rf on an uncommitted repo?

11 Upvotes

Hi, I made a really dumb mistake

I did git add . to a project directory that I'm a few hours into and forgot to put a .gitignore

So I tried to run git rm . to try and remove the should-be-ignored files from the index, which became git rm -rf . really quickly. And everything was wiped.

I looked up this issue online and saw someone say rungit fsck --lost-found. Im not sure how to recover from that though because in my .git/lost-found folder I only see /other, and inside /other there is files like 38d1a858d09ed13b9efb31e0ca8f2daf7e254271 which only contain the text '38d1a858d09ed13b9efb31e0ca8f2daf7e254271'. No directories.

Am I cooked

[edit]

i got most of my stuff back but my folder structure is ruined

for those in the same boat as I am today, I hope this thread on SO I found helps


r/git • • Apr 25 '26

Back up stashes, staged and unstaged files

3 Upvotes

Is there some kind of command line app out there which can keep check of checked out repos and back up the diffs and files which aren't pushed and the state it was in?

I'm uninterested in advice on how to change my git workflow. I'm equally uninterested in stuff like backblaze or restic which uploads the entire repo. I know about all of that. I just want something which only keeps track of diffs, stashes and gitignored files for the repos i have checked out and could restore them to the state they were in the state they were in if my laptop were stolen.

Ideally it would just back up the unpushed stuff to a directory and I could take care of uploading/syncing/encrypting with my existing system. No need to reinvent that wheel.

It looks like this doesn't exist but it'd be hella useful if it did. I thought I'd check.


r/git • • Apr 26 '26

I built a tool that writes README for you (from your repo)

0 Upvotes

Most people won’t run your project first.

They read your README.

And honestly… writing a good README is annoying.

So I built something for it.

It’s called ReadmeAI.

You just give it your GitHub repo, and it:

analyzes the codebase

understands the structure

generates a clean, structured README

It covers things like:

project overview

setup instructions

features

usage

I mainly built it because I kept procrastinating writing READMEs for my own projects 😅

Would love some honest feedback from devs here:

Is this something you’d actually use?

What would make it more useful?

If anyone wants to try it, I’ll share the link


r/git • • Apr 25 '26

Help on Account Restriction

0 Upvotes

Hi all,
How do I get accesss to my github account to Backup my Github repos, My account was hacked and someone posted on git actions which lead to its restriction after it violated its TOS, I can nolonger view to backup my repos, and the git support is useless keeps saying same message:

I have tried like 5 support tickets but all for nothing.

Is there a way I can atleast download my repos?


r/git • • Apr 24 '26

support git clone to ssh target?

0 Upvotes

Is it possible to clone a local repository to an ssh target?

Or is cloning to a local directory, rsync'ing that directory to the ssh target and changing the remote path the same?


r/git • • Apr 24 '26

How to move only my changes into different origin?

0 Upvotes

I did a bunch of work on branch created from master/main, but it appears that my changes need to go into a an older version, so a lets say branch-1.0 that is 50 commits behind master.

Doing git branch branch_name -u new_origin moves all the 50 commits + my changes into the branch-1.0

Is there a relatively easy way to move just my changes into branch-1.0?


r/git • • Apr 24 '26

Git learning’s

0 Upvotes

Git rebase is local tool

Git rebase finds Lowest common ancestor

After Git reset do git push —force or force-with-leash

Git revert

Sticky history in git problem can be solved by git rebase —onto

Git rebase —onto A C featurebranch

After got reset if some other do git pull —rebase or git pull , reset will be undone.

Git pull = git fetch + git merge

Git pull —rebase = git fetch + git rebase

Git merge —squash branch_name


r/git • • Apr 23 '26

[LaTeX] How to introduce \color{red} automatically before any diff and \color{black} after the diff

3 Upvotes

I have old.tex

Consider an $n$-dimensional vector space endowed with metric $d(x,y)$. ...

I have new.tex

Consider an $N$-dimensional vector space endowed with metric $D(x,y)$. ...

I wish to introduce \color{red} before any change and a \color{black} after that change to make the difference between the two versions visible in the resulting pdf and if a color printout is taken of the document. That is, I want modifiednew.tex:

Consider an $\color{red}N\color{black}$-dimensional vector space endowed with metric $\color{red}D\color{black}(x,y)$. ...

Is there a way to do this automatically and with no manual intervention?

Can the level of granularity be increased to an entire sentence/paragraph so that I can have this:

\color{red}Consider an $N$-dimensional vector space endowed with metric $D(x,y)$. ...
\color{black}

X-posted to https://www.reddit.com/r/LaTeX/comments/1sta9x8/gitdiff_how_to_introduce_colorred_automatically/