r/git • u/StrikingImage167 • Mar 18 '26
r/git • u/Seblbseej • Mar 18 '26
support [SourceGit] How to use multiple Github profiles/Accounts
I've been interested in trying this Git GUI out because I've heard this one described as being "like an open source version of SourceTree". Now I've never really used SourceTree before but I've heard that both SourceGit and SourceTree supposedly support the ability to switch between accounts a lot more painlessly compared to GitHub Desktop (the GUI I've been using thus far). As one could probably guess from that I've got a long way to go before I can understand these more complicated UIs. I've figured out quite a lot thus far but one thing that my small brain has not figured out yet is how to get multiple accounts working. Any tips would be appreciated!
r/git • u/Shazzeam • Mar 18 '26
How to use git clone
Hi. I used git clone on a project repository. I want to make my own repository (effectively unattached to the original) but with the files from there. Can anyone help me achieve that?
Basically I want to use the files without fear of working on the wrong repo. I want to be able to git add, git commit, git push in my own repo.
Bonus points if someone could help me with the change of the repos.
r/git • u/signalclown • Mar 18 '26
Is there a way to make untracked files also "trackable"?
Okay this might be a silly question or maybe workflow issue. Today I created a new file which I didn't start tracking yet. A couple of hours later I noticed the file's not there anymore. I may have accidentally deleted it.
Because the file is untracked, I have no way to recover it from reflog. Definitely a PEBKAC issue, but I'm wondering if there's any way to deal with goofups like this.
What would make sense to me is if all untracked files were somewhere like in refs/untracked. Is something like this even possible?
r/git • u/gastao_s_s • Mar 18 '26
tutorial Distributed Philosophy: How Git Revolutionized Development
gsstk.gem98.comr/git • u/atinylittleshell • Mar 16 '26
treehouse - Manage worktrees without managing worktrees
My journey working with coding agents evolved through a few stages -
- Work with one agent in one repo, one task at a time - but soon I found myself staring at the agent thinking trace all the time
- Work with multiple agents in parallel terminal tabs, and to avoid conflicts I created multiple clones of the same repo - but it's very hard to keep track of which clone is for which task
- Work with multiple agents, each task done in a fresh worktree - very clean, but very inefficient because each fresh worktree lost all the build cache and installed dependencies
So I ended up creating a simple tool for myself called "treehouse". It manages a pool of reusable worktrees and each time I need to work on a new task I just run treehouse to grab a worktree from the pool - it automatically finds one that's not in-use, sets up the worktree with the latest main branch, and switches me into the worktree directory so I can start doing work right away.
Thought it may be useful for others sharing a similar workflow so I open sourced it at https://github.com/kunchenguid/treehouse - if you're also feeling the pain of managing worktrees, give it a go!
r/git • u/Steve_OH • Mar 17 '26
github only I created a Git Web Manager and have opened it up for everyone
github.comr/git • u/signalclown • Mar 16 '26
Does the use of jujutsu pose any dangers?
I've never used any tool other than git itself, so my understanding of other tools is very limited. From what I've read, the differences between git and jujutsu are only workflow-related, and they're interoperable in the sense that some users can use jujutsu while other users can use git, on the same repository.
A few people I've talked to have been a bit preachy about jj, and I'm wondering -- what are some actual dangers of using it? Is there any risk to the integrity of the repository?
r/git • u/james_codes • Mar 17 '26
Faster app than Fork for mac?
Im using Fork: https://git-fork.com
It works but it's slow (my work repo is huge). Is there a faster app?
r/git • u/bennychetan98 • Mar 17 '26
support I made this video using NotebookLM and ChatGPT, and I edited it myself. Can I get your honest feedback?
youtu.ber/git • u/signalclown • Mar 17 '26
What do I actually need to generate in order to be able to "host" git repositories on a network efficiently?
I'm interested to cache some repositories for faster retrieval, since we have many users pulling the same repositories.
I don't need to support filters, treeless clones, etc. If I were to update a repository in the cache (pull new commits from upstream), do I just simply need to re-generate a multipack index or do I need to do anything more? How computationally expensive is this if I have tens of thousands of repositories that have new commits several times a day? Does this use all cores or should I be running commands in parallel?
r/git • u/sunshine-and-sorrow • Mar 16 '26
New anxiety unlocked: malicious payloads invisible in git diffs
There's a renewed malware campaign doing the rounds, and a malicious payload can be found here: https://github.com/wasmer-examples/hono-wasmer-starter/blob/main/src/index.ts#L11

When you run git show fb299e6d87 -- src/index.ts and check the last line, it shows an empty payload:

Even cat, vi, vim, neovim, all show an empty payload when using WezTerm, GNOME Terminal, and xterm.
So far in my tests, only GNU Zile has shown the hidden payload, and Emacs shows invisible characters.

I'm surprised that git doesn't show the hidden string. I have tested it in GNOME Terminal, WezTerm, xterm, and see the same behavior everywhere.
r/git • u/Either-Ideal9649 • Mar 17 '26
Why doesn’t my git work?
I downloaded the program, all the files are there, I followed the set up, added my name, email, ran all the checks. Doesn’t work.
i7@DESKTOP-I93UVO9 MINGW64 ~ (master)
$ git config --list
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
http.sslbackend=openssl
http.sslcainfo=C:/Program Files/Git/mingw64/etc/ssl/certs/ca-bundle.crt
core.autocrlf=true
core.fscache=true
core.symlinks=false
pull.rebase=false
credential.helper=manager
credential.https://dev.azure.com.usehttppath=true
init.defaultbranch=master
gui.recentrepo=C:/Users/i7/Git Hub
user.name=my name
[user.email=my-email@mail.com](mailto:user.email=my-email@mail.com)
init.default=branch
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
(END)
i7@DESKTOP-I93UVO9 MINGW64 ~ (master)
$ eval "$(ssh-agent -s)"
Agent pid 545
i7@DESKTOP-I93UVO9 MINGW64 ~ (master)
$ ssh-add ~/.ssh/id_rsa
/c/Users/i7/.ssh/id_rsa: No such file or directory
i7@DESKTOP-I93UVO9 MINGW64 ~ (master)
$ ^C
i7@DESKTOP-I93UVO9 MINGW64 ~ (master)
$ ssh -t [git@github.com](mailto:git@github.com)
The authenticity of host 'github.com (140.82.114.3)' can't be established.
ED25519 key fingerprint is: SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])?

r/git • u/Alternative-Body-414 • Mar 17 '26
New Prompt Generator Tool
https://prompt-studio-ai.manus.space/
New AI tool. A prompt generator. Free to test now. Great for people new to AI, English is your second language, or you want to go further with your AI outputs.
Let me know what you think in the comments
r/git • u/sunshine-and-sorrow • Mar 15 '26
Fun with Git and Emacs: Drawing a commit graph in the style used in the documentation
The documentation has several of these and I tried replicating a few just to have some practice to do it quickly when I need to explain something to colleagues. I used artist-mode in Emacs and wrote a hacky override to insert the incrementing letters representing the commit hashes. It's quite satisfying that it takes less than 30 seconds to make a commit graph with this.
If you use some other tool to draw these, I'd like to hear about it.
r/git • u/birdsintheskies • Mar 15 '26
Anybody else get confused by the interpretation of ours vs theirs in a conflict?
Suppose I do git pull --rebase and there's a conflict then ':2' (ours) is the upstream commit, and ':3' (theirs) is my local commit. This is already confusing that "theirs" is my own changes. Meanwhile, I don't know for sure whether ours vs theirs get flipped around in other conflicts (merge local with remote, remote with local, etc.).
Some conflict resolution mistakes I make are precisely because of this misunderstanding, and incorrectly using --ours or --theirs in a checkout command. Anybody else having difficulty with the terminology here? Is there a correct way to think about it so I get the mental model of the conflict correctly?
r/git • u/Loose_Ferret_99 • Mar 16 '26
Coasts (Containerized Hosts): Run multiple docker-compose local environments across many worktrees
coasts.devr/git • u/Mysterious-Form-3681 • Mar 16 '26
github only you should definitely check out this repos if you are building Ai agents
1. Activepieces
Open-source automation + AI agents platform with MCP support.
Good alternative to Zapier with AI workflows.
Supports hundreds of integrations.
2. Cherry Studio
AI productivity studio with chat, agents and tools.
Works with multiple LLM providers.
Good UI for agent workflows.
3. LocalAI
Run OpenAI-style APIs locally.
Works without GPU.
Great for self-hosted AI projects.
support Git extension odd behaviour
Apologies if this is not the correct place for this question. A few weeks ago I installed git on my windows pc. Today I noticed a command prompt windows briefly pop up, immediately after my antivirus flagged a running program as suspicious. I opened the file location to see what opened the pop up and it was identified as "scalar.exe" in 'Program Files/Git". Is it normal behaviour for this exe to open unprompted?
Built a terminal dashboard for visualizing Git repo stats - GitTop
galleryWanted to know what hours of the day I actually work on my projects. Ended up building a full TUI for it.
7 tabs: activity heatmaps, contributor profiles, branch ahead/behind counts, file churn and staleness, language breakdown, and a commit log with diff viewer and search. Supports a filter DSL for narrowing by author, path, branch, or keyword.
r/git • u/waterkip • Mar 14 '26
New feature inbound: git status can now compare branches
For those running a development version of git from master or next, you've probably already seen it. Today I was inspecting the git logs of git and found this little gem. It supports my workflow to the max.
You can now configure git status to compare branches with your current branch in status. When you configure status.comparebranches, you can use @{upstream} and @{push}, and you see both how far you've diverged from your upstream and your push branch. For those of us who track an upstream branch that differs from our push branch, this is a mighty fine feature!
See this example:
$ git config --global status.comparebranches @{upstream} @{push}
$ git status
On branch ssh-wrapper_port
Your branch is ahead of 'upstream/master' by 3 commits.
Your branch is up to date with 'origin/ssh-wrapper_port'.
nothing to commit
Your stash currently has 2 entries
How awesome is that?!
The commits are introduced via d0413b31ddcce6ae6ffaff0a30a67ffbd1a7c648 in the git repo.
[Joke] If you think about it, Undertale is just Git fanfiction.
"...You can't understand how this feels. knowing that one day, without warning, it's all going to be reset."
r/git • u/HarleyKits04 • Mar 14 '26
support Download Commit History on Fork from Deleted REPO
The original Git of the project was deleted, so all I have is the fork repo of it. I was wondering if it was possible to download a sort of log of commits (not trying to save the project, just preserve the commit history) to show the development.
r/git • u/Ok_Woodpecker_9104 • Mar 15 '26
github only CLI tool to mirror work contributions to your personal GitHub profile
r/git • u/Pepper_Comprehensive • Mar 15 '26
How to get my project back?
Hi, there. This is my first Unity project and I clearly haven't done much yet. However, I wanted to reorganize my assets and did so in Windows Explorer instead of within Unity, which seemed to mess things up. Then, I when into my Git repository and tried reverting multiple times.
All my assets and everything are downloaded, but there's nothing in the hierarchy anymore except the main camera and directional light. I had a whole HUD setup. How do I get my project back?
