Skip to main content

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.

1 vote
1 answer
116 views

Using sed to edit filepath variable

I am trying to use the sed command to edit a value in the .git/config file. When running the remote origin command, the config file creates the line of text like this": url = https://github.com/...
Abbatrombone's user avatar
0 votes
0 answers
22 views

Excel PowerQuery locking source file for Git

I am using PowerQuery in Excel to load a CSV config file. = Csv.Document(File.Contents("myFile.csv"),[Delimiter=",", Columns=4, Encoding=1252, QuoteStyle=QuoteStyle.None]) This ...
DS_London's user avatar
  • 101
0 votes
1 answer
28 views

Dealing with whitespaces in file names after git grep -l

I'm trying to run the script below and I'm struggling with pathspec error when the filename has whitespaces. I have already read some other posts around here, but since I am not an expert I was not ...
O Pardal's user avatar
  • 103
-1 votes
1 answer
66 views

How to git clone a public repository through firewall?

I am trying to install a scientific software package on a HPC cluster. Let's call it clusterhpc. During the configuration process software package tries to clone a bunch of public git repos. However, ...
mechanics32's user avatar
2 votes
0 answers
19 views

Required git filter without smudge causes "smudge filter failed" error on unrelated(?) operations

(related question for context; tested with git version 2.30.2 on Debian 11) I have written a git custom diff and filter normalising my .po files to make them diff-able by git diff and by GitLab Merge ...
Zsar's user avatar
  • 293
2 votes
0 answers
28 views

How to inline complex grep call into git config

I have, following this answer, created an executable file "podiff" for use as a custom diff (and later, hopefully, a filter) calling grep in this way: grep -Ev '^#:|^"POT-Creation-Date|^...
Zsar's user avatar
  • 293
0 votes
0 answers
63 views

Notepad++ mode for git commit messages

I want to use Notepad++ to help formatting git commit messages. NOTE: this is NOT a question about setting up git to open Notepad++ as its editor, I know about git config. This is NOT about running ...
Gauthier's user avatar
  • 1,235
0 votes
0 answers
56 views

Posh-Git PowerShell Module for Standard User in Windows 11

I can install posh-git just fine when running PowerShell 7 as an Administrator and Import-Module posh-git works fine and my git branch is highlighted just fine. However if I open the PowerShell 7 or ...
Oliver Nilsen's user avatar
0 votes
0 answers
116 views

How to download the git folder from Azure DevOps using powershell

I was trying to download the folder from a GIT based repository in Azure DevOps. I was able to download it through the below script. $token = "PAT" $url="https://dev.azure.com/{ORG}/{...
mohan 's user avatar
  • 21
0 votes
1 answer
48 views

My git history all of my commits have no message

this happened today last few hours, have not updated git, but all of my git commits have no message I do a commit git commit -m "fixed the headline level" and when I do git log I see ...
user254694's user avatar
  • 1,185
0 votes
0 answers
37 views

How to achieve a git pull from a CGNAT?

I imagine my scenario to be reasonably common, so I am wondering if there is a method to achieve it. I perform development on my local machine, which is either connected to the internet over my home ...
BrownianBridge's user avatar
1 vote
1 answer
56 views

What causes broken Git references?

Just helped a friend debug a "broken git reference." Fixing was easy enough update-ref -d or rm -r .git/refs/..., but I still don't understand what causes this in the first place. I have a ...
Chris Pfohl's user avatar
0 votes
1 answer
36 views

How can I move location or setup user special folders for multiple windows installations but the same user on a single machine?

How can I move or otherwise link Windows user special folders (Documents, Downloads, etc) such that multiple Windows installations on the same machine can share them seamslessly for all programs and ...
Michael Adams's user avatar
-2 votes
1 answer
493 views

Removing /usr/bin/git

While downloading RStudio, I accidentally agreed to download Git too (macOS Sonoma 14.4.1). Its location via the terminal: which git /usr/bin/git git --version git version 2.39.3 (Apple Git-146) I am ...
Gil's user avatar
  • 1
0 votes
1 answer
163 views

How do I clone from local git repositories with ssh?

The final goal is to host a remote repo on my pc that support pushing and pulling. From the official doc given by git help clone, the host url format should be git clone ssh://user@localhost:/C:/path/...
Forest Lam's user avatar

15 30 50 per page
1
2 3 4 5
182