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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 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
24 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
54 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
11 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
27 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
46 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
-1 votes
0 answers
28 views

Is Github "Assign up to 10 people to this issue" allowing for private repository in free organize now?

I have the strange thing after I took over the Github Org from my friend. That allow me assign issue to multiple people in private repository without PRO plan! I checked for multiple source in google ...
tuanngocptn's user avatar
0 votes
0 answers
29 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
95 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
40 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,161
0 votes
0 answers
33 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 ...
Joe Pritchard's user avatar
1 vote
1 answer
39 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
33 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
221 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
91 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
1 vote
1 answer
36 views

git - using gitconfig to switch repository host address

So right now I have some alias in my ~/.ssh/config: Host github_company_a HostName github.com Host github_company_b HostName github.com and I use the alias directly: git clone git@...
Prometheus's user avatar
1 vote
0 answers
61 views

Cannot connect to GitHub on Mac

I'm using Mac Ventura 13.6.6 and git version 2.39.3 (Apple Git-145). Due to my location, I have to use VPNs to use Google, GitHub, etc. It has been working well. Since several days ago, I realize that ...
SoftTimur's user avatar
  • 1,277
1 vote
1 answer
537 views

How to fix Github Error 403?

I want to push commits in GitHub. The url to the repository is https://github.com/ManuelaCarriero/NeuPipelines. I used: git commit -m "my commit" file then: git push -u origin main I got ...
HelpNeederStudent's user avatar
0 votes
0 answers
39 views

filename not matched in a newer version of unzip for windows

I use the same command with 2 versions of unzip : unzip sources.jar *.scala -d sources_extracted With this version of unzip available on SourceForge, it works: inflating: sources_extracted/path/to/...
Sybuser's user avatar
  • 183
1 vote
0 answers
39 views

Why does git checkout -f not revert my modified changes?

I always use git checkout -f to revert changes to the last commit and never had any problems. Rarely though do I get into this weird state where it doesn't work and I have no idea what is going on. ...
Macky's user avatar
  • 93
0 votes
1 answer
67 views

Git missing from win10 debian wsl, libc6 version prevents install with apt-get

Git is not seen by WSL after installing for windows. Using apt-get install git gives the following error: Reading package lists... Done Building dependency tree... Done Reading state information... ...
Mike Lyons's user avatar
1 vote
0 answers
54 views

Copy or Sync all the branches from one Org Repo to another org with same repo

I have written the powershell script which will sync or copy the repo from one org to another org, but currently this script is sync only master branch, but not all the branches. Below is the Code <...
chandu's user avatar
  • 53
0 votes
1 answer
59 views

I'm getting on gitbash a warning WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! for github

When I try to clone a git repository in gitbash on Windows I get following error: $ ssh -T [email protected] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST ...
Asterios Raptis's user avatar
1 vote
1 answer
59 views

KeePassXC and `.ssh/config` dont behave correctly when setting public key as Identity

I have been using KeePassXC as a password manager for a while and I've been quite happy with it. Today I decided to try to set it up as as ssh agent. The platforms of interest for me are Windows and ...
Sito's user avatar
  • 13
0 votes
1 answer
69 views

Why is there a save icon and a number next to my git branch in PowerShell oh-my-posh?

I am new to using PowerShell to do my git commands and on some of my repositories, I see the following symbol: what does this symbol mean? I looked up symbols but did not find much.
EveryDayDev's user avatar
0 votes
1 answer
83 views

Changed color settings of ble.sh bash terminal are not applied

I installed the ble.sh from this git repository https://github.com/akinomyoga/ble.sh.git, but i want to customize the color settings with ble-face commands. What happens is that, I changed the color ...
Vitor Martins's user avatar
0 votes
1 answer
92 views

How to git clone both origin and upstream?

Context: I am working with git. I typically have forks of other repositories where I contribute now and then. I switch my work machines often - and also delete local clones of the remote repositories. ...
koppor's user avatar
  • 666
0 votes
1 answer
86 views

Long time SSH key to github stops working, and now github tests welcome me as org_name/other_project

A ssh key that had once worked with Github stopped working and nothing I did would fix it. All Git requests would die with the standard git: fatal: Could not read from remote repository In github, I ...
wruckie's user avatar
  • 300
1 vote
1 answer
64 views

Use Vim to edit Applescript file

Is it possible to use Vim to work on applescript files rather than the default Automator or Script Editor program? I searched the webs and couldn't find the same question or an answer anywhere. I ...
Jimmy Long's user avatar
1 vote
1 answer
103 views

git is unable to properly determine the terminal width (git-bash, windows)

As you can see in the screenshot, the terminal is currently 100 characters wide, and both methods of detecting such that I'm aware of are returning the correct value. Despite this, unless I explicitly ...
davidmwhynot's user avatar
0 votes
1 answer
53 views

Can I use Git to track MP3 and AAC metadata without corrupting files?

I have a collection of roughly 7k (40GB) MP3 and AAC files, these files I have collected over the years and put through different players and organisers. Unfortunately during that time some of these ...
Imran's user avatar
  • 425
0 votes
0 answers
196 views

error encountering during the Yocto build process (KIRKSTONE for VAR-SOM-MX6 board) ,systemd recipe failing to unpack due to a BitBake Fetcher Error

I'm facing an error during environment setup related to VAR-SOM-MX6 - Yocto Kirkstone 4.0 based on FSL Community BSP 4.0 with 5.15.71_2.2.0 Linux release. The terminal output is below. I have already ...
Sagar chaudhari's user avatar
-1 votes
1 answer
90 views

Start .bat file via php

I'm using system('START C:\[address]\refresh.bat'); but when I start this I get: C:\[address]>git fetch 'git' is not recognized as an internal or external command, operable program or batch file. ...
Hopm Mpoн's user avatar
0 votes
0 answers
99 views

Authentication of commits and pushes in a bare git repo without an actual git server running

I am trying to understand what a git repo itself without a server hosting it is able to do. My goal is a bare git repo somewhere on our network drive that people can pull and push to. I was able to ...
patvax's user avatar
  • 101
0 votes
1 answer
230 views

Force linking of work items to VS git commits

Is it possible to force a developer when committing work through Visual Studio to link a work item (Bug, Task, Product Backlog)? I can see I can link with a '#' in the git commit comments but would ...
David's user avatar
  • 1
2 votes
2 answers
760 views

Pushing to a Gitea repo as a "Sign in with GitHub" user

I've set up an account on a Gitea instance using the "Sign in with GitHub" feature, and that account has been given write access to a Gitea repository. When I try to push local changes to ...
Vectornaut's user avatar
2 votes
1 answer
320 views

How to avoid git auto creating a .pack file?

In a big project. cd project git init git add . ls .git/objects/pack # big pack file If I want to unpack .pack, I need to run git unpack-objects < .git/objects/pack/pack-.pack every time after ...
kouhe3's user avatar
  • 21
0 votes
1 answer
130 views

How to retrieve past Github GPG keys?

Github's public GPG key very recently (2024-01-16) expired. I have deleted my locally stored public key copy of that key and cannot verify old commits of our repo. Now to retrieve the Github public ...
Fab1n's user avatar
  • 121
0 votes
0 answers
124 views

How can I get the history of changes of a moved or deleted file in git?

My situation I have a git repo synced with github in my directory ~/my-repo. I created some files, after a while make changes to them, after a while move them, then delete one. I what see history of ...
Emilio Platzer's user avatar
0 votes
1 answer
231 views

Is it acceptable to use the masked GitHub email address when generating the SSH key for GitHub? [closed]

GitHub provides the masked address I can use in form of [email protected]. According to the website below I should start generating the key with ssh-keygen -t ed25519 -C "...
Zoltan King's user avatar
0 votes
1 answer
78 views

How can I share executables from my Linux build computer with my macOS editing computer?

I currently have a setup where I edit code on my Mac, push the changes to a GitHub repository, pull the changes on my Linux build server (controlled via SSH), then build the program. The issue is that ...
AcinonX's user avatar
  • 111
1 vote
1 answer
234 views

How to make git reset (or another method) remove empty directories?

I have a git repo that I need to clone, do some things, then package up and send to other people. I'm making this all automated via Ansible so there's no user intervention required. I want to ensure ...
jeremywat's user avatar
  • 113
1 vote
0 answers
46 views

Solutions for organising configuration files across devices and between categories [closed]

As a Linux user, I have a lot of non-GUI applications for which I configure their desired behaviour through config files. One of the troubles I have is that I have multiple devices from which I would ...
manoelpqueiroz's user avatar
0 votes
1 answer
105 views

Overwrite bash alias for git pull to include --recurse-submodules

Neither functions seem to affect anything for me? Is anyone able to get them working and show me what I'm doing wrong? I'm trying to override git pull to include recursive submodules whilst keeping ...
P1000's user avatar
  • 1
2 votes
0 answers
333 views

VSCode unable to sign commits

If I try to commit something, I'm getting this error. > git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file - -S error: gpg failed to sign the data: gpg: skipped <redacted&...
MathIsNice1729's user avatar
2 votes
0 answers
622 views

sparse-checkout to clone a specific sub-folder on the root of the repository

I have a git repo that has a submodule inside it. "main_repo/submodule" I don't want to see all files and folders of this submodule, that is why I am using sparse-checkout in this submodule ...
Mohammed Noureldin's user avatar
1 vote
0 answers
100 views

Autocomplete filepath or show suggestions when adding file using git in zsh

Let's say following is the output of my git status command. On branch LG-201 Your branch is up to date with 'origin/LG-201'. Changes not staged for commit: (use "git add <file>..." ...
Kartik Chauhan's user avatar
0 votes
1 answer
389 views

Why use "Rebase after Fetch" in TortoiseGIT?

Why use "Rebase after Fetch" dialog when pulling in TortoiseGIT? I have looked, and can find no documentation for this feature. One of the few references I found implied it was equivalent to ...
bnieland's user avatar
  • 659
0 votes
0 answers
221 views

How to clone just master/main and on-demand/lazily pull branches only when they are checked out?

I'm working with a git repo that is in excess of 10gb with contributions being made constantly - it's creating a workflow issue for me. Cloning the repo with git clone git@... takes about an hour and ...
David Alsh's user avatar
1 vote
1 answer
1k views

Cannot find GPG Key

Please help me debug this set of terminal commands. I have created a GPG key and added it to github, and am trying to sign my commits: me@my-macbook myproject % gpg --list-secret-keys --keyid-format=...
xanld's user avatar
  • 113

1
2 3 4 5
55