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.

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

How does git determine the value for HOME when not set?

Searching for "git default home directory" will easily net some third party statements that the user folder C:\Users\<account> is said directory. In practise, this generally holds: ...
Zsar's user avatar
  • 211
0 votes
0 answers
12 views

Git on Cygwin using SSH: Permission denied (publickey) when cloning, but ssh -T git@github.com works

I am having trouble getting cygwin configured to use git with ssh keys on my windows 10 machine. I installed cygwin's most recent version from their site (setup version 2.925) and added/ensured the ...
Douglas B's user avatar
  • 111
0 votes
0 answers
118 views

"ssh: connect to host gitlab.com port 22: Network is unreachable" error - can't connect to any SSH server

I have an issue I can't connect with SSH to Gitlab or any AWS instance. It was fine before, but I remember that I have installed RabbitMQ last time (not sure if this is the reason). I installed it ...
Mohamad Zbib's user avatar
-1 votes
2 answers
45 views

TortoiseGit: How to show files with differences between branches before merging

Merging in TortoiseGit will automatically merge a file to the latest code if there are no conflicts. However, I'd like to choose some blocks to merge only (the files don't conflict). Is it possible to ...
Dee's user avatar
  • 621
2 votes
1 answer
30 views

What permissions does a user need to run `git ls-remote`?

I have a Git repository within my home folder on my Ubuntu 22.04 system. A system utility user 'gremlin' needs to check that this is a real Git repository. The best way to do that that I've found is ...
Borea Deitz's user avatar
1 vote
1 answer
37 views

Force push current branch to origin if not master

I have a git alias for force pushing current branch: [alias] fp = "!git push -f origin \"$(git rev-parse --abbrev-ref HEAD)\"" Which basically maps fp to a command that does a ...
James Wierzba's user avatar
0 votes
0 answers
37 views

How to pass Ctrl+R to the git bash terminal in Visual Studio Code? [duplicate]

Right now while in git bash terminal inside VS Code if I press Ctrl+R nothing happened - VS Code awaits for the second key of chord: Is it possible to instruct VS Code to pass the Ctrl+R key ...
mark's user avatar
  • 856
0 votes
0 answers
40 views

Lazygit: Can anyone show a real example of the pull-request config for Azure DevOps?

If I want to create a pull-request from LazyGit, I need to setup a provider in the config.yml. The syntax shown in the documentation is like this: services: '<gitDomain>': '<provider>:&...
Carsten Gehling's user avatar
0 votes
0 answers
50 views

How to git commit backwards?

Suppose that I commit a file with contents How is it possible to git commits backwards?. Let's call this commit final. I then change the file contents to How to git commit backwards?. Let's call this ...
user900049's user avatar
0 votes
0 answers
64 views

In git, what is a way to have the same file appear on multiple branches

TLDR I want to have a file doc/results.drawio updated in several branch I'm working on regardless of the branch on which I make a change. In git, How can I update a given file on multiple branches? ...
PatS's user avatar
  • 377
0 votes
0 answers
25 views

Tortoise Git not using id_rsa

I use Tortoise Git on Windows 10. When I push it asks me password although I do have %userprofile%\.ssh\id_rsa file. I also tried to use git from command line (Git bash). If I google I get instructed ...
user1787194's user avatar
0 votes
0 answers
11 views

Managing signed commits as an organization

We are looking to introduce signing of commits into our company. Currently we are leaning towards using GPG kays, but we can consider SSH if what we want cannot be achieved with GPG. We are using a ...
user avatar
-1 votes
1 answer
518 views

fatal: unable to access could not resolve host git lab ubuntu

I am trying to run git clone as below through Ubuntu terminal(unix) and getting below error.. git clone -c http.sslverify=false https://gitlab.financeexpert.com/finance/financeflow.git error: fatal: ...
Arya's user avatar
  • 107
0 votes
1 answer
28 views

Add specific directories to git

I have a script in the folder public_html, of which I would like to track and modify certain directories (recursively) only. Content example: public_html/file1.php public_html/file2.php public_html/...
hussonic's user avatar
0 votes
1 answer
72 views

mkdtemp: private socket dir: Permission denied in Git bash app of Windows

I used git bash app in windows and linux for years and unexpectedly this times it throws mkdtemp: private socket dir: Permission denied Could not open a connection to your authentication agent. ssh-...
MosQuan's user avatar
0 votes
1 answer
27 views

Git GUI which allows to configure the pull button

I have a specific local branch, which shall pull exclusively a remote's master and ignore its tags. Namely, it shall do git pull --no-tags remoterepo master. I would like when the GUIs pull-Button ...
Nils Lindemann's user avatar
0 votes
0 answers
144 views

Git: unable to push to remote server, SSH works fine

I tried to make changes to an app that I last modified about 5 years ago and when I tried to push them via git, I got "Permission denied (publickey)". I tried adding the key again, adding ...
Jonas S.'s user avatar
0 votes
0 answers
24 views

how to block git from allowing unauthenticated user to make git changes

I have several different git users each for different git repos and each with a different ssh key pair and each git user has its own version of file ~/.gitconfig yet sometimes I mistakenly issue git ...
Scott Stensland's user avatar
0 votes
1 answer
20 views

`git add --interactive` and `git commit filename` confusion

Committing only parts of your edits is possible by using either git add --interactive or git commit filename. However when combining both methods the results are unexpected. For example you "...
U. Windl's user avatar
  • 464
1 vote
0 answers
106 views

Why does git pull sometimes fail, but a second git pull always succeeds?

Not asking about a specific scenario, more in general. When I start up my workstation and am updating repos at the start of a day, often I get sporadic git failures even though my network and ...
Afforess's user avatar
  • 115
0 votes
1 answer
38 views

Adding gpg-exported ssh key to ssh-agent

I exported one authentication key from gpg to a public ssh key (with the --export-ssh-key), now I'd like to add its privat key with ssh-add to be able to clone a repository on github through the ssh ...
TornaxO7's user avatar
0 votes
0 answers
26 views

login to gitolite using https in web

I want to use gitolite in web using https like https:// and use all other features of git like cloning, pull and push . I have searched a lot but couldn't find anything . If any document or any ...
user1778852's user avatar
0 votes
0 answers
109 views

Unable to forward gpg agent

My goal is to make commit on a remote server. The problem is when I tried to $ git commit -m "test". It throws error mini-mini-01:~/test$ git commit -m "a" error: gpg failed to ...
Jason Rich Darmawan's user avatar
2 votes
0 answers
235 views

FVM/Flutter unable to find git on non-administrator account on Windows

As an administrator, fvm works: PS C:\WINDOWS\system32> fvm flutter --version Flutter 3.7.5 • channel stable • https://github.com/flutter/flutter.git Framework • revision c07f788888 (3 days ago) • ...
wsaxton's user avatar
  • 121
1 vote
1 answer
49 views

Unification of two or more Git repositories in a single one

I have to unify two (maybe more) Git repositories in a single one. The given repositories are A, B, etc. All the files and folders from these repositories at the end must be an X, with the following ...
Kérdezösködő Indián's user avatar
1 vote
1 answer
581 views

How to add selfsigned certificate to bundle in git-bash?

Attempting to update git on a windows machine in git-bash with git update-git-for-windows fails with a message from curl: curl: (60) SSL certificate problem: self signed certificate in certificate ...
Human's user avatar
  • 511
0 votes
0 answers
77 views

git won't recognize windows folder is a linux symlink - status shows link files as deleted and symlink target contents as untracked

I cloned a repo to a network drive on a linux machine, then opened the cloned repo on a windows machine. the repo has linux style symlinks in it, that windows interprets (correctly) as folders. the ...
Harry Zalessky's user avatar
0 votes
1 answer
236 views

How to run pre-push git hook only when files in a subfolder have changed since the last push?

I have a monorepo that has a C# backend with a react frontend. The frontend is in a subfolder and I'm trying to setup a git hook specifically for the react client. I've installed husky, which handles ...
pianoman102's user avatar
0 votes
1 answer
127 views

Find proxyaddress:port in Windows

I try to set the proxy when I work in companies so use git; pip freely. Currently I know that I need to set the proxy because when I try to pip install a certain library I get the old message : ...
minattosama's user avatar
2 votes
0 answers
64 views

What is the VS Code keyboard shortcut to accept a highlighted change

I'm looking to review some changes using the keyboard. I can move between changes in VS Code using ALT+F3 (Show Next Change aka editor.action.dirtydiff.next) or the previous change with SHIFT+ALT+F3. ...
frozenkoi's user avatar
  • 653
0 votes
1 answer
227 views

How to push whitespace changes to git without anyone else knowing?

I am very particular about proper indentation and spacing in my code, so it bothers me that a lot of code in the repository I am working on is terribly "dirty". I want to "clean" ...
user10931326's user avatar
0 votes
0 answers
48 views

I need the *nix top command for Git Bash

I have Git for Windows installed and I am using the Msys flavour of Git Bash: $ uname -o Msys I do not want to install the MinGW suite and i cannot find the top command from the Msys repo. The best ...
jumping_monkey's user avatar
0 votes
1 answer
440 views

What files do I need to move for zsh + oh-my-zsh if I migrate to a new machine?

New machine and I went looking for instructions for this and didn't find any. I'm sure I need to move over my .zprofile and .zshrc, anything else? I have the old machine still. Bonus: also using oh-my-...
jcollum's user avatar
  • 4,863
1 vote
1 answer
600 views

errors in encoding avc x264 to av1 using latest ffmpeg libaom linux

I have a system with Intel i3 10th generation processor and Asus H510 me motherboard. I have installed Arch Linux x86_64 latest version and after that I have installed aom package from official ...
Guddla Rupesh's user avatar
0 votes
0 answers
24 views

How can I get the first use of a language in my Github profile?

I have a rich Github profile and I'd like to get some data showing the earliest time I've first committed in distinct languages. The data I'd like to get looks like this: Python (7 years since first ...
Eray Erdin's user avatar
0 votes
0 answers
76 views

Git command redirect console output (windows)

If I use the git command without any redirect, e.g.: git -c "core.sshCommand=ssh -o \"StrictHostKeyChecking no\" -i \"/C/Users/username/.ssh_test/id_rsa\"" clone git@...
raiserle's user avatar
  • 101
0 votes
0 answers
66 views

New commit on top of earlier commits gets removed -> new work on the earlier commits by others -> revive the removed commit? Pull: divergent branches

New commit on top of other commits was removed, new work on the earlier commits from others, how to revive the removed commit? When checking out the last commit before the one that is to be revived, ...
questionto42's user avatar
  • 1,705
0 votes
1 answer
188 views

How to remove all files from GIT repo history with path having colon : in filename?

I have ISCSI node filenames with colons stored in GIT repository on Debian 10 Linux. Example: 'iscsi/nodes/iqn.2000-01.com.synology:NAS01-DS916.nas/ff11::111:11ff:ff1f:1ff1,3260,1/default' 'iscsi/...
klor's user avatar
  • 159
0 votes
0 answers
52 views

Lighttpd: Redirect to 404 on any request of /.git

How do I make Lighttpd return a 404 whenever it gets a request for anything under "/.git"? I tried this but I think I'm misunderstanding something as it won't start up with this: # don't ...
Jobbo's user avatar
  • 504
0 votes
0 answers
156 views

smartgit showing modified files with not changes

I'm generating certain files with a tool (I'm writing in C#), and I presume they must differ somehow comparing to the old ones, except the text content should be the same. And smartgit shows them as ...
Omu's user avatar
  • 845
0 votes
0 answers
241 views

SSH isn't using “~/.ssh/config” in macOS 13.1 (Ventura)

After quite a long time between reboots, I did one. After rebooting I was working on some code hosted on GitHub, however > ssh -T MY_USERNAME@github.com MY_USERNAME@github.com: Permission denied (...
Raoul's user avatar
  • 1
0 votes
1 answer
191 views

Can ping but not ssh to server on VPN using ubuntu 22.04 and pulse VPN

I've just installed a new copy of Ubuntu 22.04, and I need to access a private github repository over a VPN using pulseVPN. I've created SSH keys and added them to the private github instance. When I ...
Chris Tanner's user avatar
0 votes
1 answer
162 views

git insists on user local user name on ubuntu while cloning

I followed the guides to set up my user name and e-mail. I then verified with the same commands. git config --global user.name "<github user>" git config --global user.name > <...
user1760715's user avatar
0 votes
0 answers
47 views

How to get the git object of a working tree file?

The closest I got is this unrelated answer. For example, the working tree have the foobar.txt file (which is committed as well). How to, from foobar.txt, get its object id? The idea here is to get the ...
Daniella Mesquita's user avatar
0 votes
1 answer
249 views

SmartGIT Stuck on "Exhausted Available Authentication Methods"

A few days ago, a Git server (using Gitlab) I work on had some changes made and went down for a while. I believe that they moved it to a different machine. I access with SmartGit and use SSH keys ...
BPugh's user avatar
  • 111
1 vote
1 answer
57 views

Open unzipped MS Office and LibreOffice files

MS Excel xlsx (and also ODS), are zip files containing XML files and folders of XML files: [Content_Types].xml _rels docProps xl In order to track changes in Git, I have created a repo with the XML ...
Bastiaan Quast's user avatar
0 votes
0 answers
39 views

GIT SSH keys gets "forgotten" the next day, sometimes

We use DevOps as git repository and I use Git GUI to generate an SSH key. I've used DevOps months without any issues, but as of recently, I've started to notice that my SSH key get's invalidated or ...
Joost00719's user avatar
0 votes
0 answers
470 views

Can't resolve hostname when docker is running

I'm currently running Ubuntu on a WSL2, I have a couple of repos I cloned with my ssh key (which is valid as I registered it on Azure as I'm using Azure Repos). Right now, if I start WSL and try ...
Lucas's user avatar
  • 101
1 vote
0 answers
2k views

ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [125]]

Our jenkins deploy process checks out our git repo into the workspace and create the docker container from the docker file. Docker file is given in the ec2 machine. and commands to create docker ...
user1757996's user avatar
0 votes
1 answer
324 views

How to fix "fatal: unable to look up gitlab.f5net.com (port 9418) (Name or service not known)" with go get command

Go version: 1.19.4 > go get gitlab.f5net.com/mbip/containers/f5-log-lib.git gitlab.f5net.com/mbip/containers/f5-log-lib.git@v1.9.0: verifying module: gitlab.f5net.com/mbip/containers/f5-log-lib.git@...
mberge's user avatar
  • 1

1
2 3 4 5
54