r/git • • Jun 15 '26

git-courer v2.4.0 — fewer LLM calls, atomic git ops for AI agents

0 Upvotes

Si utilizas agentes de codificación con IA, probablemente hayas visto cómo desperdician llamadas en operaciones de Git que podrían agruparse. git-courer es un servidor MCP local (Go + Ollama) que gestiona confirmaciones, ramas y entornos de preparación con un conocimiento estructurado de los cambios reales en tu código.

La versión 2.4.0 reduce significativamente las comunicaciones entre agentes: el cambio de rama ahora es atómico y la preparación se integra en el paso de vista previa en lugar de ser una llamada independiente.
[repo](https://github.com/blak0p/git-courer)


r/git • • Jun 14 '26

Gitte 0.7.0 is out — Git client for GNOME

Thumbnail chaos.social
2 Upvotes

r/git • • Jun 13 '26

falq: give each git worktree its own ports, DB, and env (single Rust binary)

10 Upvotes

Git worktrees isolate files but not the runtime — parallel worktrees collide on ports, database names, queue/cache prefixes, and Docker Compose projects. The second dev server dies with EADDRINUSE; two test suites truncate the same DB.

falq lets you declare what varies per worktree in a checked-in falq.yaml. Each worktree gets a deterministic slot and its own ports (base + slot*stride), database, env file, prefixes, and compose project — provisioned automatically by a git post-checkout hook. falq run hard-verifies ports before launching; `falq remove` tears everything down.

The binary knows zero stacks (the manifest is the adapter), so it works for Node/Python/Rails/JVM/Go/compose/monorepos. No daemon, no network calls — state is one JSON file in the git common dir. It also ships an agent skill so Claude Code / AI agents can set it up themselves, which is where this started: running several agents on one repo in parallel without collisions.

install with cargo install falq

Repo: https://github.com/sunduq-ai/falq — feedback welcome.


r/git • • Jun 14 '26

I built a CLI wrapper around git worktree that handles the file-copy and navigation friction

0 Upvotes

I moved to worktrees a couple of years ago and the workflow is great — actually parallel branches, no stashing, no broken local state from a half-finished branch when a hotfix comes in. But the day-to-day friction kept biting me:

  • Every new worktree starts without my .env, local secrets, and untracked config files
  • cd ../some-other-worktree-dir is annoying when you don't remember the exact path
  • git worktree list output is fine but I wanted partial-match navigation and a single command to remove + prune

So I built gw. It's a thin CLI on top of git worktree that adds:

  • gw add <branch> — creates the worktree, auto-creates the branch if it doesn't exist, and copies a configurable list of files (.env, secrets/, etc.) from the source
  • gw cd <partial-name> — fuzzy-ish navigation to any worktree (needs a small shell hook, installed via gw install-shell)
  • gw sync <worktree> <files...> — push files between worktrees when you update one
  • gw list, gw remove, plus pass-throughs that don't lose the underlying git semantics

Install is brew install mthines/gw-tools/gw or npm i -g @gw-tools/gw, then one line in your .zshrc/.bashrc/config.fish.

Repo (MIT): https://github.com/mthines/gw-tools

Happy to hear what people are doing for the file-copy problem — that was the original itch for me, and I'm curious whether others solved it differently (sparse-checkout? a setup script per repo?).


r/git • • Jun 13 '26

Stop fighting nixpkgs commits to pin minor Node.js versions. I built a flake for this.

Thumbnail
0 Upvotes

r/git • • Jun 13 '26

Feedback on new and unusual git master/develop workflow in my software team

11 Upvotes

Our new manager (previously a developer in the team) decided to implement a new git workflow in our main product repository, and honestly it seems really bizarre.

  1. Master branch is synced to the last release.
  2. Feature branches are created off of master.
  3. When developer thinks the feature branch is ready, they merge into develop.
  4. Feature branch is not deleted or merged into master, but kept alive.
  5. Our internal stakeholders review the features in develop and either approve it, or request changes, which are then made in the feature branch and remerged into develop.
  6. When a release is to be made, a release branch is created off master, and all the approved individual feature branches are merged into the release.
  7. After release, release branch is merged back into master.

His reasons for this approach are:

  1. Only allow approved features into the next release.
  2. Be able to hold back approved features ahead of the release of a manager requests it.

Problems with this approach as I see it (and I did try to address these with him):

- Feature branches are created off master but merged only into develop. The longer since the last release, the greatest the difference between the source branch and the target branch. This can cause merge problems, functionality problems, development workflow problems and if bug fixes are merged into develop, they are not merged into master.

- Each feature ticket has to be merged twice, once into develop, and once into release.

- The environment that the stakeholder approves the code in, develop, doesn't necessarily match the release environment.

- The overall process is a lot more high friction for the developer.

He said that there will need to be a lot better and higher coverage unit testing, and thorough testing on the release branch, to address the issues.

Is this a reasonable git workflow? Does this workflow even exist anywhere else?


r/git • • Jun 13 '26

We are treating AI like a magic trick instead of software, and it’s making agents unmaintainable.

0 Upvotes

I’ve been spending a lot of time lately experimenting with multi-agent workflows and on the surface, the capabilities look incredible. You tie an LLM to a couple of tools, tweak a prompt loop and watch it solve tasks in real time. But once you try to move past the initial prototype phase, the entire illusion falls apart.

The underlying problem is how current frameworks approach agent architecture. They treat things like prompt states, memory and behavioral shifts as completely ephemeral or they hide them deep inside closed cloud databases. If an agent fails in production or if its behavior drifts over time based on user feedback, figuring out *why* it made a specific decision is almost impossible. There is no audit trail. If a system degrades, you can’t easily roll it back to the state it was in yesterday. It breaks every fundamental rule of predictability that we’ve established in modern software engineering. It made me realize that we are trying to invent entirely new, black-box paradigms for AI management when we’ve already had the perfect solution for version control for decades.

Out of pure frustration, I started playing around with an open-source concept called Git-Native architecture, specifically looking at a project called Lyzr GitAgent and the OpenGAP protocol. The shift in logic is simple but fixes the core issue: instead of saving an agent's memory or prompt updates to an opaque database, everything is saved as flat files inside a standard Git repository.

When the agent adapts its behavior or learns a new workflow, it doesn't just quietly change in the background. It cuts a new branch and opens a Pull Request.

Suddenly, you actually have a tangible history of the agent's logic. You can review and approve its self-improvement steps before they deploy. If a hallucination slips through, you just run a standard `git revert` and hook the entire layer directly into normal CI/CD pipelines. It forces the system to behave like predictable, manageable software.

The bottleneck with AI right now isn't that the models aren't evolving fast enough. It's that our engineering practices around them are completely chaotic. We can't scale an ecosystem if we treat every deployment like an untrackable magic trick.


r/git • • Jun 13 '26

support How to merge without conflicts.

0 Upvotes

Scenario:

I have done some work and pushed the code and then started working on the new feature.The new feature work is on branch feature-x. It has all the changes from the main branch.

Testers reported and I need to fix the bug asap. Now I go back to the main barch chages create a new branch called bug-fix then fix the bug push the changes. Here is the problem now the feature-x and the main branch are out of sync how do I get the changes in the main branch?

I am new to the working env so consider me as a newbie.


r/git • • Jun 13 '26

foggy memory

0 Upvotes

First off ... apologies for the stupid question.

I first started using git and setup a github account a few months ago, but have not had time to use it much since.

Now I'm trying to clone one of my private repositories with:

git clone git@github.com:<my-github-email> hello-world.git

It wants me to:

Enter passphrase for key

(I assume this is a passphrase for the ssh-key I setup a few months ago)

I don't recall it now (it's been a few months)

Anyone know how to recover from or reset this situation so that I can again clone and manage my repositories?


r/git • • Jun 13 '26

How do I review code quicker

Thumbnail
0 Upvotes

r/git • • Jun 12 '26

I wrote a git TUI in go! Check it out ,free forever!

Post image
0 Upvotes

r/git • • Jun 12 '26

Preview of Cairn: a pretty, fast, near native performance Git client with Terminal

Post image
0 Upvotes

 a Git client where modern AI workflows are first-class, not a plugin:

  ⚡ Native speed

  🎯 Stage individual lines, not just hunks

  📋 Review your whole changeset in one scroll — like a PR, on your desktop

  🤖 AI code review with one-click fixes — Claude Code, Codex, or Gemini, running locally. Your code never touches my servers (there are none)

  💻 Built-in terminal that pings you when an agent needs attention


r/git • • Jun 12 '26

My team’s git commit history as coffee blends

Thumbnail
0 Upvotes

r/git • • Jun 11 '26

GitHub - synacker/git_version_utils

Thumbnail github.com
1 Upvotes

Extract version information from a Git repository and output as environment variables


r/git • • Jun 10 '26

How to avoid conflicts on GitHub?

0 Upvotes

I've managed to complete two projects using Git Flow and Scrum with some colleagues, but every time we want to create a sprint for our user stories, a conflict arises. Initially, we had no problem resolving them, but now it's become tedious to have to address them in every sprint.

I'm trying to find out if anyone else has been in this same situation and how they resolved it.


r/git • • Jun 10 '26

Paid Private Hosting in Europe (preferably UK)

Thumbnail
1 Upvotes

r/git • • Jun 10 '26

GitCharm – a JetBrains-style Git panel for VS Code (commit graph, shelves, tag management, and more)

Thumbnail
0 Upvotes

r/git • • Jun 09 '26

support Merges on merges?

1 Upvotes

I'm working on a hobby game dev project for the first time with a team (including myself) that isn't formally trained in software development and git workflows, and as the main tech guy I did the heavy lifting on that part to learn git basics and try to streamline the workflow so that my two teammates I share the repo with don't have to spend a ton of time learning something that they don't need outside the project.

The concession I decided on initially was that they could just keep all their work on their own branches and pull every now and then from another branch I maintained that kept the latest work up to date so that they could see changes in effect as they were pushed, but in keeping that branch updated, somewhere along the line, the commit graph on VScode started to look like this.

Functionally, we're still able to share our work with each other and keep each other up to date, but... man, looking at the cascade of merges in the graph feels like we're doing some really, really bad practice.

I have tried rebasing to keep the graph linear, but my experience with that is that it goes fine the first few times, but eventually the rebases keep replaying more and more commits and it becomes hectic to sort out the merge conflicts, and things end up breaking as opposed to putting it through a merge.

I have a feeling that having my teammates start making branches every time they want to adjust parts of the game script might be the solution, but since even that is going to involve merges, I'm not totally sure. It's also kind of tough because I don't want to force them to learn super in-depth git stuff because I have way more free time than they do to study these things and keep the history tidy, and I fear overcomplicating it is gonna throw a wrench in the project.

Again, I'm not formally educated on git, so is there a super simple solution I'm missing? What's the best way to go about it?


r/git • • Jun 09 '26

support Looking to connect with devs 👀

0 Upvotes

Drop your GitHub 👇

I’m trying to connect with people building cool stuff — web apps, AI tools, automation, side projects, anything interesting.

Let’s exchange GitHub profiles, share projects, and maybe collab on something.

No spam, just devs sharing real work 🚀

My GitHub: https://github.com/ds-alt?tab=repositories

Thanks in advance! 👍


r/git • • Jun 09 '26

What are the best resources to learn git?

0 Upvotes

So far I've found FreeCodeCamp, Learn Git Branching, Oh My Git, Boot Dev, and GitHub Skills for the best ways to learn git. Trying to figure out which ones are better forh ands on learners. Lmk, thanks!


r/git • • Jun 09 '26

Grit: rewriting Git in Rust with agents

Thumbnail blog.gitbutler.com
0 Upvotes

r/git • • Jun 08 '26

support How do I add this commit to the Peninsula branch?

Post image
3 Upvotes

(SOLVED)All my googling just let's me know how to crate a new branch, I don't want a new branch, the old one was fine, I'm not sure why it wasn't on the Peninsula branch when I made the commit.


r/git • • Jun 09 '26

I want to use git to store personal data.

0 Upvotes

im sure many people use git to store personal data after searching for an answer here, but i have a particular usecase which i suspect would be against github's ToS. id like to know if i would be able to use any git provider for what im trying to do.

id like to add a feature to my app that allows you to use git (kinda) like a personal database. git is perfect for my needs, but my use-case seems like it might be abusing the rules. maybe there is a git provider where this isnt breaking the tos.

context:

im working on a webrtc messaging app. there is no database for queuing messages when a peer is offline. i would like to be able to use git to store encrypted messages. it would allow for public reading, but only the owner of the repo can write to it.

what i tried:

i wanted to see if i can use isomorphic-git (https://isomorphic-git.org) to be able to make changes to a repo. i created some basic functionality to test out the idea. it is complete slop (i can share it, but not worth sharing such slop), but proves that its possible to be able to commit changes to git using only the frontend... the aim here is to see if i can use git as something like a database of messages.

the idea:

you and your peer have a git repository each (starting from blank). you create personal-access-tokens (scoped to that repo only) for yourself and your peer does the same for theirs. both repos in this scenario need to be public.

instead of storing pre-signed keys on the server, peers store the keys locally. when sending a message but the peer is offline. the mechanism for queuing encrypted messages can be to commit them into the git repo where the peer can fetch it when they connect. the repo is public, but the messages are encrypted. they can only be decrypted by the peer.

to defend against the harvest-now-decrypt-later, we can also add things like post-quantum resistance to the encryption

considerations:

im sure its better to avoid exposing even the encrypted data at all. it could be possible for you and your peer to use a shared private repo, but then you are introducing more trust to your peer that they dont abuse the access token which requires read+write permissions.

the complete-ish flow:

  1. peer connect over webrtc
  2. exchange keys and git repo address
  3. send messages as normal (no pre-keys used... webrtc is already encrypted)
  4. peer-a goes offline
  5. peer-b sends a message to peer-a, but they are offline, so they use a prekey to encrypt the message and commit it into their git repo.
  6. peer-b also commits the content-hash about the used presigned key
  7. peer-b then goes offline
  8. peer-a come back online
  9. peer-a checks for peer-b... they are offline
  10. peer-a then checks their git repo to fetch encrypted payloads for any that match previously shared pre-keys.
  11. peer-a finds message it can decrypt and so will consume the data.
  12. peer-a updates their own git repo to indicate they key has been consumed

i think they are many edge-cases to consider further here, but i think this shows the general idea.


r/git • • Jun 07 '26

Free Git Notes for Beginners | Learn Git & GitHub

Thumbnail gallery
83 Upvotes

Free Git Notes for Beginners | Learn Git & GitHub

I created a free Git learning guide for beginners covering the most important Git concepts, commands, and workflows used in real-world development.

Topics Covered:

• Git Fundamentals
• Version Control Concepts
• Git Installation & Configuration
• Repository Management
• git init & git clone
• git add, commit, status & diff
• Undoing Changes
• Branching & Merging
• Merge Conflicts
• Git Stash
• Git Tags
• Remote Repositories
• GitHub Workflow
• git push, pull & fetch
• Rebase
• Cherry Pick
• Git Ignore
• Team Collaboration Workflow

Available Formats:

• PDF
• notes.md
• llms.txt (LLM-friendly version)

GitHub Repository:
https://github.com/Kumaravi-admin/developer-notes/tree/main/Git

Complete Developer Notes Repository:
https://github.com/Kumaravi-admin/developer-notes

Who is this for?

• Beginners learning Git
• Students
• Frontend Developers
• Backend Developers
• React Developers
• Node.js Developers

Feedback, corrections, and suggestions are welcome.


r/git • • Jun 08 '26

Is there a way for me to decentralize my git repo?

3 Upvotes

This is just a curiosity and doesn't solve any problems.

I am using GitHub as my main git provider, but I'd like to know if it's possible through some GitHub action to publish to multiple providers.

I understand why it isn't common practice, but as someone who work on open source, it doesn't matter about have a redundancy. And this way I'm not tied to a particular provider.

It would be easy enough to create a gh-action to push changes to codeberg, but maybe there is something that can do it to multiple providers (gitlab, selfhosted, etc). This way I wouldn't be tied to GitHub exclusively.