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
14 views

Is it possible, with strict base branch protection, to close multiple PRs on Github by pushing a commit that merges each of the branches?

I am participating in development of a code base that is on Github, and there is branch protection in place for master. I have 3 PRs opened, each with its own fix/feature branch tip that diverged from ...
Armen Michaeli's user avatar
-1 votes
0 answers
15 views

Sync or Copy branches from one Org to other Org [closed]

I am looking for an automation script which will copy/sync all the Respective Repository branches from one Organization to another Organization.
chandu's user avatar
  • 91
0 votes
1 answer
16 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
28 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
52 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
35 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
-2 votes
1 answer
13 views

How do I deploy local git repo from one account to another new git repo [closed]

I have a project setup locally which is on github. Now I have created a new git account with a fresh blank repo on git. I want my local project deploy on this newly created git account repo
creative dev's user avatar
0 votes
1 answer
25 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
  • 646
0 votes
1 answer
68 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
0 answers
30 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
58 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
40 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
124 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
63 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
66 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
109 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
450 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
165 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
91 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
52 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
148 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
63 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
138 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
37 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
86 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
249 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
489 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
72 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
284 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
  • 649
0 votes
0 answers
170 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
954 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 vote
0 answers
552 views

how to see tags for all commits in git-log from range of tags

I'm creating a changelog generator that works for our specific use-case. If I'm understanding how git works, when I git log <tag> or git log <tag1>..<tag2> (or use ...) the returned ...
cloaked1's user avatar
  • 331
1 vote
1 answer
532 views

Windows ssh as administrator not working with keys not named `id_rsa`

I'm attempting to pull down a GitHub repo in Windows 11 using PowerShell. My machine is configured with OpenSSH Client in Windows. I verified: ssh-agent is running same key is registered with ssh-...
ndemarco's user avatar
  • 938
0 votes
1 answer
277 views

Windows Bash Terminal takes over 10 seconds to load

When starting up Git Bash in a Windows terminal or VScode terminal, the screen is blank for 10 - 15 seconds before it initializes to having a working directory and cursor. After init, it runs fine. ...
skwidflowz's user avatar
0 votes
0 answers
358 views

apt reinstall local package if package was previously installed by repository

before I embark into this I would like to ask for clarification. I have a github package installed in Debian via its own repository. Now the project has been archived and its repo no longer works. I ...
roughnecks's user avatar
0 votes
1 answer
574 views

Github icon explanation [closed]

I have a question regarding the icons on the right of this photo, namely what do they mean exactly? I am talking about the green + sign in a square and the yellow dot in a square. Can someone please ...
eat.code.sleep.repeat's user avatar
0 votes
0 answers
116 views

How can I make git ignore further modification on a file without deleting it from the repository

Duplicate: How to ignore a tracked file in git without deleting it? Background: in the repository, there was a sample code file that underwent preliminary development and was tracked by git. Now the ...
Sheng's user avatar
  • 1
0 votes
0 answers
45 views

Debian Upgrade "Buster 10 to Bullseye 11" can no longer open or list mounted SFTP/SSH directories in VSCodium natively

In Debian Buster 10 with VSCodium, I could open folders of remote machines which were mounted in Debian's filesystem through nautilus - by accessing the "other locations" tab in the file ...
mitchelangelo's user avatar
0 votes
1 answer
590 views

Jenkins is unable to connect to GitLab

I've got Jenkins and GitLab setup in my homelab running in docker containers. I was able to connect to GitLab from Jenkins, pull the desired repo, and perform the steps in the Jenkinsfile. I had a ...
Jonathan Heady's user avatar
0 votes
1 answer
3k views

Stable Diffusion Model Fails to Load. What's causing the error?

Seems like a memory related issue but I thought my system should be able to run Stable Diffusion. Iam using Ideapad Gaming 3i with Nvidia GeForce GTX 1650 (4GB VRAM) + 8GB physical memory I have no ...
Prasad Shrivatsa's user avatar
0 votes
0 answers
77 views

Github Change author / email of squash and merge

Unfortunately GitHub used a wrong email when I used the "Squash and Merge" function for merging a branch into another. The commits / pushes from my working station were done with email A (...
Gobliins's user avatar
  • 135
0 votes
2 answers
386 views

Impossible to git push to a https GitLab repository: SSH passphrase wrongly asked each time

I have some SSH keys that, after entering my passphrases on a terminal, I use successfully to connect to some servers, in particular to push on git repositories. My organization is testing a self ...
Denis Bitouzé's user avatar
1 vote
0 answers
40 views

Problems with git push: I can see the commit but the status is modified

The scheme is the following: A desktop PC used as a server (pc1) OS: Windows 7 A laptop used by me (laptop1) OS: Windows 10 A laptop used by a coworker (laptop2) OS: Windows 10 The 3 computers share ...
Jonny_92's user avatar
0 votes
0 answers
61 views

Why do I need to type in my password when using git?

This is a strange thing, but when I am physically opening a terminal at a computer, I can use git without any need to type in passwords. For some reason, when I ssh to the machine (it is a Mini Mac), ...
kloop's user avatar
  • 111
0 votes
0 answers
116 views

How can I set the maximum repository size and maximum file size for a GitLab repository on a self-hosted GitLab CE instance?

I recently deployed GitLab CE onto a server at home. Is it possible to set the maximum repository size and maximum file size? I want to set these for security reasons, and to prevent other people from ...
user3728501's user avatar
  • 2,774
0 votes
1 answer
679 views

Add Git security exception fails

I have a windows box where I check out a Github repository. Then I make a change and commit that change and then get weird error message about a user mismatch related to file ownership: git clone ...
Besi's user avatar
  • 524
0 votes
0 answers
683 views

Can't find a way to make my usb pen Realtek 8811CU work on kali linux

I've been trying the whole afternoon to make it work . I followed many guides but nothing seems to work . I'm kinda new to kali linux. I'm using it on virtualbox and first thing i've done was to set ...
Per i Giochi's user avatar
0 votes
0 answers
15 views

How to set up git to let me and my kids manage a web server (what am I doing wrong? no files appear...)

UPDATE - see later to glimpse my whole day. See next for the TLDR; version... TLDR; I've got 2 CentOS machines - "cork" (a web server) and "local" (one workstation for now). ssh ...
cnd's user avatar
  • 411
0 votes
0 answers
252 views

I can only start Jenkins Manually with Java command, how do I have it start on boot?

So I installed Jenkins on my Windows machine, I had it working fine and was setting up my first pipeline when I got an error message about need to set Dhudson.plugins.git.gitscm.allow_local_checkout=...
Adam Schneider's user avatar
1 vote
1 answer
253 views

Bitbucket deny push to one exact branch

Bitbucket deny push to one exact branch.I can do push to other branches, but not to dev branch. Nobody of my colegues know what is going on. Is there some specific settings for branches? I dont see ...
Čamo's user avatar
  • 345

1
2 3 4 5
55