Questions tagged [git]
Git is an open source distributed version control system originally designed and written by Linus Torvalds. It is generally used to keep track of source code for software projects. As a DVCS, Git provides powerful help with branching, merging, and distributed development.
2,772 questions
-1 votes
0 answers
29 views
How to Manage Git History in Long-Lived Feature Branches Without Losing Context? [closed]
I am working on a mid-sized project where feature branches can live for weeks or even months before merging. Over time, these branches accumulate many commits, and occasionally rebasing or merging ...
2 votes
1 answer
34 views
How to configure my GPG keys on Forgejo server?
I was trying to merge a PR into a repo in my self-hosted forgejo server. but it threw this error. I found it was due to the lack of a configured gpg key in my server. After adding the gpg options in ...
-1 votes
1 answer
46 views
Why is pickaxe related to grepping git diff? [closed]
I'm talking about the options --pickaxe-regex and --pickaxe-all options to git log. What's the etymology of that term?
0 votes
0 answers
47 views
Trouble with GIT: repository not found
I'm trying to upload a C# project to GitHub. The GitHub folder is empty, so I want to upload the entire project. I get to my local directory using MINGW64. git add . no response from Ming, it accepts ...
2 votes
1 answer
110 views
How do I see the history of a snippet of code in VSCode(e/ium) using git?
How do I see the history of a snippet of code in VSCode(e/ium) using git? I'm specifically looking for a UI-based solution akin to the one available in JetBrains. Example: This is a visual of the ...
14 votes
3 answers
2k views
What is a git command to remove all files from cloned repository but still be able to pull?
I have cloned quite a few git repositories for safekeeping. I update them regularly by pulling all branches from remote. I do this to have an up to date backup in case the remote disappears. However, ...
1 vote
1 answer
42 views
git commit of one staged file accesses other (all?) files in repository
i have a git repo 250 commits, ~2500 files, gc is ran regularly the repo includes a number of remote files on servers mounted with autofs - that's intended understandably, this makes git status take ...
0 votes
1 answer
91 views
How can I return a GitHub Copilot-created pull request to Copilot after adding review comments so it can work on the requested changes?
I started playing around with the Agent Task system on the GitHub website. After GitHub Copilot creates a pull request, how do I provide feedback or comments so that Copilot can update the pull ...
6 votes
1 answer
896 views
Compiling Git from source, verifying GPG signature of tarball
I'm compiling Git from the source codes hosted on kernel.org and am trying to verify the signature of the tarball with gpg. I cannot for the life of me find the correct public key which it was signed ...
12 votes
1 answer
1k views
What will happen when a pull request includes changes to ignored .gitignore?
I have a GitHub pull request that includes some changes I want, but it also includes a .gitignore file. But I don't want anybody to change what's in my .gitignore file because it includes some things ...
2 votes
1 answer
59 views
How do I commit changes as part of Systemd service?
I am on Debian 12 with Etckeeper and OpenVPN running as a service. If I manually start/stop openVPN, it modifies few files, including /etc/resolv.conf. I would like to run a script to automatically ...
2 votes
0 answers
162 views
macOs and git - from time to time dirmngr consume one whole cpu core
I am running macOs and problem touching git (in IntelliJ IDEA). From time to time I see there is process (/usr/local/MacGPG2/bin/dirmngr) which use 99% of one core. Usually it happens when I fetch ...
1 vote
1 answer
146 views
How to set up a Git host on Windows?
I have a Windows Server that is accessible through SSH, on the server, I went to C:\Users\ftptest and ran git init --bare MyRepo.git On the client, I'm attempting to clone the new repo with git clone ...
0 votes
0 answers
76 views
VS Code timeline troubleshooting
I am running VS Code and git-csm on Windows 10 with myself the only person accessing my repository stored on a Windows Server which I access over an enterprise LAN. This is mainly for backup/disaster ...
0 votes
2 answers
104 views
Keep Tmux window list immovably centralised in the status line even when right status content changes width
I've started using gitmux by arainone when I discovered it from a question on displaying git status in the tmux status line. Having installed and configured gitmux the output now appears on the right ...