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,768 questions
1
vote
0
answers
59
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
39
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
67
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
884
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
52
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
122
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
126
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
68
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
94
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 ...
0
votes
1
answer
208
views
In Visual Studio Code, how to add a new repo?
I have Visual Studio Code 1.98.8 and I'm trying to add a new remote repo to Source Control, where I already have 2 repos cloned.
However, the docs don't say how to add a new repo if there are already ...
2
votes
0
answers
84
views
GUI apps opened from Git Bash open in background on Windows 11
After upgrading to Windows 11, apps launched from Git Bash (like explorer . or code .) always open behind the terminal window.
On Windows 10, these apps opened normally in the foreground. Is there any ...
0
votes
0
answers
52
views
Cannot start git bash shell from openssh login
From a command prompt in my Windows 10 VM, a git bash shell can easily be started with the following simple command:
C:\Program Files\Git\bin\bash.exe --login
It also works from powershell as ...
0
votes
1
answer
247
views
git fetch/push not working after updating ssh keys
My ssh key on gitlab expired recently so I created a new key pair using ssh-keygen, and put the new public key on gitlab.
Before the key expired I would just open git-bash (on Windows 11) and I would ...