Skip to main content

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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
101 views

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>: ...
mud's user avatar
  • 139
1 vote
1 answer
84 views

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 ...
l0b0's user avatar
  • 53.6k
5 votes
0 answers
109 views

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 ...
creinig's user avatar
  • 176
-1 votes
2 answers
413 views

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 ...
xerxes's user avatar
  • 359
-1 votes
2 answers
99 views

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 ...
xerxes's user avatar
  • 359
0 votes
2 answers
70 views

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 ...
sh1's user avatar
  • 113
0 votes
1 answer
285 views

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 ...
Milenko Markovic's user avatar
0 votes
1 answer
40 views

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 ...
Jeremy's user avatar
  • 185
2 votes
0 answers
141 views

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 /...
Thurisaz's user avatar
0 votes
1 answer
85 views

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 ...
Vlastimil Burián's user avatar
0 votes
1 answer
143 views

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 ...
Dolphin's user avatar
  • 791
1 vote
1 answer
130 views

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(...
Clément's user avatar
0 votes
1 answer
91 views

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 ...
b0neval's user avatar
  • 135
1 vote
0 answers
179 views

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/ ...
ivan's user avatar
  • 1,938
0 votes
2 answers
390 views

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 ...
tsilvs's user avatar
  • 109
1 vote
0 answers
31 views

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 ...
herrdeh's user avatar
  • 11
0 votes
0 answers
30 views

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 ...
Dolphin's user avatar
  • 791
1 vote
1 answer
170 views

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 ...
Franklin's user avatar
  • 295
2 votes
1 answer
75 views

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 ...
m000's user avatar
  • 181
0 votes
1 answer
103 views

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 ...
vfclists's user avatar
  • 7,919
0 votes
1 answer
952 views

I have directory structure like this $ tree . . ├── Chart.yaml ├── datafiles │   ├── index.html │   ├── style.css │   ├── exclude.txt │   └── text │   ├── file1.txt │   ├── file2.txt I want ...
Sollosa's user avatar
  • 2,009
1 vote
1 answer
3k views

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: ...
Patrick_Chong's user avatar
0 votes
1 answer
310 views

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-...
Jean-Loup Sabatier's user avatar
0 votes
1 answer
311 views

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/...
J86's user avatar
  • 413
0 votes
1 answer
1k views

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/...
Seamus's user avatar
  • 3,896

1
2 3 4 5
22