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
121 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
0 votes
0 answers
23 views

b2 command line tool, version 4.3.3 6.16.3-arch1-1 The old --exclude-regex is removed, and the .b2_ignore file is ignored. I want to sync my directory to my b2 bucket but don't want to sync the git ...
Stephen Boston's user avatar
1 vote
1 answer
85 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
1 vote
1 answer
60 views

We are using podman's containers for the project. The issue, we have is what while working on different branches of the project we need slightly different containers. So each git branch has its own ...
White Owl's user avatar
  • 5,297
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
0 votes
0 answers
133 views

I need your help! I'm trying to install pgAdmin4 desktop version on my Arch system. I am getting libfakeroot internal error: payload not recognized! while building package for pgadmin4-server(which is ...
Alex's user avatar
  • 3
-1 votes
2 answers
436 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
4 votes
1 answer
153 views

I frequently need to log into a VM that has no direct access to the internet or our source code repo. In the past I have circumvented this with a reverse port forward over ssh but now my problem is ...
Christian Bongiorno's user avatar
-1 votes
2 answers
101 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
1 vote
1 answer
81 views

I'm using a git post-receive hook to perform some actions after a git push to a remote server. This remote operates over SSH: $ git remote -v server user@server:repo.git The problem is that ...
sidyll's user avatar
  • 207
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
1 vote
1 answer
111 views

It may be a vague question, but I can't currently find a good solution in my head. I have a BookStack application running on a company server. To simplify and for security I have a custom .gitignore ...
siery's user avatar
  • 221
0 votes
1 answer
298 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
0 answers
145 views

when I run this command in Visual Studio Code in macOS 13.3.1, shows: ➜ texhub-web git:(main) git pull origin main fatal: unable to access 'https://github.com/RedDwarfTech/texhub-web.git/': LibreSSL ...
Dolphin's user avatar
  • 791
0 votes
1 answer
42 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
0 votes
1 answer
45 views

I added this step to CI check_if_there_is_change: - run: name: Check that no git-tracked files were modified command: | FILES_MODIFIED="$(git status --...
Milenko Markovic's user avatar
2 votes
0 answers
143 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
89 views

For a while now one specific user on my fedora 40 machine fails to clone any git repo at all with this error: SSL certificate problem: unable to get local issuer certificate Since the root user was ...
silverhalide's user avatar
0 votes
1 answer
86 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
1 vote
0 answers
71 views

I've asked the question on SO before, but maybe it is better placed here. I'm running on Ubuntu 24.04.1 LTS (X11) and have p4merge installed in version p4v-2024.3.2656785. I'm using p4merge since ...
morecore's user avatar
  • 111
0 votes
1 answer
152 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
0 votes
1 answer
158 views

I am new to vim and have difficulty setting it up. I am working with a FRR code in which the tab is 8 spaces. I want to see 4 spaces instead of 8 and have added the following settings [options.lua]: ...
Fidelity's user avatar
1 vote
1 answer
133 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
0 answers
271 views

I have followed the usual step of creating ssh keys adding the public ones to the provider(Github/Bitbucket etc). But for some reason this time I have to run ssh-add ~/.ssh/ each time I start my ...
Arnob's user avatar
  • 101
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
2 answers
93 views

I have this alias: git config --global alias.all '!f() { ls -R -d */.git | xargs -I{} bash -c "echo {} && git -C {}/../ $1"; }; f' It currently works fine when I run it like : git ...
Codrguy's user avatar
  • 133
1 vote
0 answers
181 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
1 vote
0 answers
122 views

Cross-posting from here as suggested by the community. A bit of context: At my company we do tunneling to ssh into EC2 boxes. This tunneling command is as usual, uses ForwardAgent and the proxycommand ...
Stoic Alchemist's user avatar
0 votes
2 answers
395 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
2 votes
1 answer
1k views

This is clearly one of those "I've missed the basic principle" type issues. Luckily since everything is now "on the web" I can be very specific and not need to say "for ...
GraemeV's user avatar
  • 450
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
1 answer
47 views

I would like to use the code stored in an external git repository (I mean I am not a contributor for this code, I cannot push or create branches) but of course I need to change some files before ...
fangorn's user avatar
  • 33
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
0 votes
1 answer
33 views

I am using git on Ubunto with bash shell, and a tab-completion using bind '"\t":menu-complete' in my .bashrc file. When I do git diff X, tab-completion starts cycling with matching git tags, ...
Itamar Katz's user avatar
1 vote
1 answer
174 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
2 answers
7k views

Long story short I have an SSH key pair that I am copying to a new machine from a shared drive whenever the machine starts but when I load in the keys I keep getting an error. There is no difference ...
no nein's user avatar
  • 121
2 votes
1 answer
78 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
0 answers
116 views

I have my computer language set to en_GB with fr_FR as backup only for spellcheck and money/measurement formatting purposes. CLI apps work fine like that except git, who insist on using the first non ...
5th's user avatar
  • 1
0 votes
1 answer
104 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
161 views

Referring to this https://stackoverflow.com/a/31356602, I wrote this code: #!/bin/bash # Define the two strings to compare string1="First string with some random text." string2="Second ...
Gabriele's user avatar
  • 353
0 votes
1 answer
962 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
0 votes
1 answer
116 views

I want to create a bash function where you can do a sed find and replace while ignoring the files and folders in .gitignore. I also want to be able to add any git grep flags to the command. For ...
wyc's user avatar
  • 143
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
1 vote
1 answer
141 views

I've run into a very strange problem where Git says it start can't my editor, even though it definitely exists and works: $ git config --global core.editor /usr/bin/nano $ git rebase -i main hint: ...
Timmmm's user avatar
  • 685
0 votes
1 answer
311 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
793 views

I'm using yocto to build my custom Linux distribution. I need to add hiredis to my distribution. hiredis is a minimalistic C client library for the Redis database, and I need it to access Redis by a C ...
User051209's user avatar
0 votes
1 answer
318 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
2 votes
1 answer
2k views

git fetch --all --no-tags doesn't do what it says on the tin, and keeps re-fetching tags every time I run it. How do I actually fetch from all remotes without fetching tags? To reproduce: Fork this ...
l0b0's user avatar
  • 53.6k
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
0 votes
2 answers
2k views

Ubuntu 22.04.1 LTS When I do a git push REMOTE after a reboot, after a few seconds it comes up with a dialog box: +---------------------------------------------------------------+ | Please enter the ...
Strider's user avatar

1
2 3 4 5
22