Questions tagged [git]
Git is a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
1,055 questions
1
vote
1
answer
101
views
"error in libcrypto" for ssh-add with git-bash (mingw32) on Windows 11
I have a problem with SSH key usage for GIT on windows.
It works fine from windows GUI git clients.
From the terminal - git-bash / mingw32 - it fails with
$ git pull
git@<gitserver redacted>: ...
1
vote
1
answer
84
views
How to fixup when there are duplicate commit subjects?
To reproduce:
Create two commits with the same commit message subject (that is, the first line of the commit message). Let's say the first commit gets commit ID "a", and the second one gets ...
5
votes
0
answers
109
views
Subsequent "git clone" commands influencing each other?
I'm currently part of a migration from GitLab to Azure DevOps. As part of that I wrote a little bash script that iterates over the migrated git repos and for each performs a clone from both gitlab and ...
-1
votes
2
answers
413
views
how to filter git commits only if certain directories were changed
I need to filter commits based on directory changes, for example I need to get a list of commits only if the commit made a change in a certain directory.
I have tried the path filter glob option ...
-1
votes
2
answers
99
views
extract multiple words from git log
I need to extract multiple words from git log.
I need the commit id and ticket number for each commit, I then need to run this through a loop and do some further processing for each commit.
commit ...
0
votes
2
answers
70
views
How to improve responsiveness of git hash in zsh prompt?
I wanted to put the current git hash in my prompt; but my initial approach was kind of laggy:
psvar[1]="$(git log -n1 --pretty='format: %h' 2>/dev/null)"
(with $PROMPT including %1v to ...
0
votes
1
answer
285
views
Why git diff does not work? fatal: bad revision '[6.1...]'
I want to compare 6.1(which is main) and my branch
git diff [6.1...] -- [/MM-pizdmr-are-up-to-date]
fatal: bad revision '[6.1...]'
I tried Github UI ,but it take too much time and suggested
git diff ...
0
votes
1
answer
40
views
How do I change the Subject/Title of patchwork patch?
I have created a patch for the Linux kernel. It can be found at the following website: https://patchwork.kernel.org/project/bluetooth/patch/[email protected]/
Unfortunately, I ...
2
votes
0
answers
141
views
Git issue on FreeBSD 14.1
I've set up a FreeBSD 14.1 server with sources and ports tree. Then, after some port and package installations, I've tried to update the ports tree, in which purpose set up git and did git init in /...
0
votes
1
answer
85
views
How to enable git gpg signing all commits from my computer
Background: It was years ago since I reinstalled my Linux Mint, now having couple months new installation of Linux Mint 22 Cinnamon, so I do not know if my question is specific to VS Codium which is ...
0
votes
1
answer
143
views
Is it possible to make Windows git bash support chinese
I am trying to use curl (v8.6.0) to send the HTTP request to sever side under Windows git bash terminal. The server side is a Java spring boot application. When the curl JSON content contains Chinese ...
1
vote
1
answer
130
views
Zsh: completion not working for self-defined function based on git
In my .zshrc file I have written a function based on git log:
lg() {
git log \
--abbrev=12 \
--graph \
--oneline \
--color=always \
--format="%C(cyan)%h %C(blue)%ar %C(...
0
votes
1
answer
91
views
On a fresh machine, which should come first the syncing of dotfiles or installation of their libraries?
This is a bit of a newbie question but I'm only starting out my journey with dotfiles!
Suppose I have a fresh machine and I want to sync my existing dotfiles/settings from some repo.
A dotfile may or ...
1
vote
0
answers
179
views
How to limit depth of `git diff --dirstat`
I have a git branch and I'd like to show how much of its changes are due to tests vs. implementation. I can run:
git diff master..my-branch --dirstat
and I get something like:
22.2% app/foo/abc/
...
0
votes
2
answers
390
views
git clone error: bad line length character
I am trying to set up a GIT server in my LAN & use it with my Android phone through Termux.
My PC runs Fedora Silverblue 40.
Some tracelogs:
On my PC (all as user git):
$> ip addr show wlp5s0 ...
1
vote
0
answers
31
views
heptapod: include version number in file name?
I'm trying to maintain an install script for Tryton ERP at Tryton community. I'd find it useful to have a version number in the file name; to manage this, when committing I'd like to have a prompt to ...
0
votes
0
answers
30
views
how to check the multi remote repo new commit when using git commit
I have a project with multi repo, when I commit with one of them, I just want to make sure each of the repo are newest, because the repo have some dependencies, I want to fetch all repo changes and ...
1
vote
1
answer
170
views
How can I change the output colors of `git branch -vv`
I see that it takes a --format argument:
--format <format>
A string that interpolates %(fieldname) from a branch ref being shown and the object it points at. The format is the ...
2
votes
1
answer
75
views
text formatter that supports bullets
I am looking for a formatter to use with my git commits. par pretty much does what I want, with the (important) limitation that I can't get it to properly format bullet lists, which are pretty common ...
0
votes
1
answer
103
views
How can I call git's built-in diff command directly after configuring a different visual "git diff" substitute?
I have configured git diff to be a command that calls substitute diff for viewing file differences i.e /usr/bin/vim -dR "$2" "$3" and that doesn't work when I want to create a ...
0
votes
1
answer
952
views
.Files.Glob pattern for a helm configmap
I have directory structure like this
$ tree .
.
├── Chart.yaml
├── datafiles
│ ├── index.html
│ ├── style.css
│ ├── exclude.txt
│ └── text
│ ├── file1.txt
│ ├── file2.txt
I want ...
1
vote
1
answer
3k
views
Why is my `git diff` now showing old mode and new mode instead of the differences in values of my local branch vs. master branch?
When I used to run git diff requirements.txt for the longest time it would show me the difference between the value of requirements.txt in my local git vs. master branch.
But now when I run it, I get:
...
0
votes
1
answer
310
views
Git LFS doesn't work anymore with our Yocto: git doesn't fetch "large files" since we upgraded our tools
Git LFS doesn't work anymore with Yocto: git doesn't fetch "large files" since we upgraded our tools to these versions:
Yocto kirkstone
gitlab 16.7.3 and gitlab 16.8
git version 2.34.1
git-...
0
votes
1
answer
311
views
Automatically add ssh key based on directory I'm in
I have two GitHub accounts. One for personal use, and another for business. Each is set up with its own SSH key gh_personal and gh_business inside ~/.ssh.
I have a personal project that sits in ~/code/...
0
votes
1
answer
1k
views
After `su user`, getting `fatal: failed to stat : Permission denied` with `git push`
There's a lot of setup for this question:
I've got a host (rpi5.local) with 2 user accounts: pi and cake.
I wanted to explore git, and I created the cake account to "own" the "server/...