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

Installing Git LFS

I'm following this guide. When I have to run this trainer: trainer = Seq2SeqTrainer( model, args, train_dataset=tokenized_datasets, eval_dataset=tokenized_eval, data_collator=...
user avatar
  • 19
1 vote
1 answer
28 views

Git credentials in a shared virtual machine

A friend and I want to use a (Ubuntu) VM to develop code. The main app is Visual Studio Code. The idea of the VM is that it can guarantee that we both have the same versions of the same VS Code ...
user avatar
0 votes
0 answers
10 views

ssh-agent no longer working

I used to execute eval $(ssh-agent -s) from git bash. It would give me a message and all was fine. Today, it's no longer outputting anything and a ps -ef | grep ssh yields no results. It's like ssh-...
user avatar
  • 1
1 vote
1 answer
26 views

Capture Git output in a Bash variable

I want to capture a command execution output like below: $ o=$( git clone git@my.server:my-repo/demo.git ) Cloning into 'demo'... remote: Counting objects: 176, done. remote: Compressing objects: 100% ...
user avatar
  • 177
1 vote
0 answers
22 views

Installed Windows 10, file permissions causing all sorts of problems with cygwin

A little bit about my setup: Was previously running Windows 7 with 0Patch, finally installed Windows 10 (clean install). All of my data is stored within an encrypted VHD (TrueCrypt/VeraCrypt) on a ...
user avatar
0 votes
0 answers
22 views

lerna run `lerna version patch` throw error git remote update Permission denied?

I use lerna and want to use lerna version to manage my version。 I add password to my ssh key. I can do git remote update by inputted my password . But i cannot use lerna version patch and it give me ...
user avatar
  • 101
0 votes
0 answers
13 views

Does Pulse secure vpn cause problems using other tools on your machine e.g. terminal and git on Windows 10 machine?

I have a work Windows 10 machine with Pulse secure vpn, I use a cmd terminal on it. I noticed sometimes that using code . doesn't work in opening VS Code, there is a flash on the screen but it doesn'...
user avatar
0 votes
1 answer
25 views

Purpose of adding ssh identity file to ssh agent and keychain

I noticed that the Github instructions for adding an ssh key to your account say that you need to add the key to both your ~/.ssh/config file AND to the ssh agent with ssh-add https://docs.github.com/...
user avatar
  • 161
0 votes
1 answer
19 views

Github Desktop branch selector shows branches from upstream AND origin?

I'm learning to contribute to open-source projects on Github. I want to try fixing an issue that applies to the 3.x branch, but I'm confused why Github Desktop is showing me branches from both origin ...
user avatar
  • 945
0 votes
0 answers
25 views

Find the default branch name for a Git repository?

I would like to be able to ask Git "what is the default branch name for this repository?" and I would expect either main or master as the result. I've search git config but haven't been able ...
user avatar
0 votes
0 answers
7 views

How to I undo already commited changes only for a chosen line = at "line level" (not the whole file) in codium/vscode?

Use case. I have committed a file with many changes, and I forgot to make a new commit for a much smaller side-task - to clean the file from some personal outdated e-mails I found in there, which has ...
user avatar
0 votes
0 answers
13 views

How to access Synology git server remotely?

I can access the git server when using the same WiFi. But if I switch to mobile network, I can no longer access it. DSM version 7.0 Does the NAS have a VPN or other phone home to get me back to the ...
user avatar
  • 508
0 votes
0 answers
9 views

VSC - Virtual Workspaces (Github) Can't upload folder

I'm using an extension called "Remote Repositories" (and "GitHub Repositories" got auto-installed too) to browse one of my GitHub repositories. For the most part, everything's been ...
user avatar
0 votes
1 answer
32 views

git status: How to ignore content changes?

I'm not interested in file content changes, just: if new file is created file is removed file is renamed (combination of the first 2 items) So if file already committed is temporarily changed it ...
user avatar
3 votes
1 answer
4k views

fatal: unsafe repository on mounted volume

I have a startup mounted volume which contains several git repositories, and I have no idea why, but starting today I can't make git operations in these repositories. I have this error message: fatal: ...
user avatar
0 votes
0 answers
38 views

Bitbucket / SourceTree authentication failure

On some occasions and currently NOW SourceTree will not allow me do any operations against My bitbucket repository and keeps popping up to choose a credention helper of which I have no clue which one ...
user avatar
  • 667
0 votes
0 answers
61 views

Why Does Git Locally Delete My Empty Directory?

If I am understanding the answers here correctly, git should not track an empty directory, but should not delete it locally. This is not the behavior I am experiencing. Directory dir_foo/ exists on ...
user avatar
4 votes
2 answers
136 views

Without rebasing, how to push a local repo to a new remote github repo initialized with a license file?

I have a local repo with some commits. As I want to make it publicly available to others, I need to push it to a newly created remote repo at Github. The newly created remote repo is initialized with ...
user avatar
0 votes
0 answers
49 views

How many objects is too many for a git repository?

We are planning to store frequently updated text and graphics in a version control system. It's not source code, but it is mostly text files. No single object is "large", but the size of the ...
user avatar
0 votes
0 answers
15 views

commands opened editor window closed but still waiting process exit

I'm using vscode on win10. When I run git merge with conflicts or kubectl edit or anything in windows powershell/terminal/gitbash that internally invokes the editor, the default editor notepad is ...
user avatar
  • 101
1 vote
0 answers
17 views

How stop multiples projects in vscode with the launch.json

I have in my launch.JSON a configuration that allows me to start two different API projects at the same time (Web API One and Web API Two), both are components of the same project, everything works ...
user avatar
1 vote
0 answers
38 views

Git repository with working tree at root of filesystem, cannot add/track anything within the root folder of the repository

I have a repository that I use to track changes in configuration files all over my filesystem. The repository is located at /root/configtracker. Edit #==================================================...
user avatar
  • 396
0 votes
0 answers
163 views

Symbolic link does not work in Git over Windows

I have a repo called Base and another repo called Project. They are cloned in C:\Company\Base and C:\Company\Project. I use mklink C:\Copmany\Project\BuildScript.bat C:\Company\Base\BuildScript.bat to ...
user avatar
  • 23
0 votes
0 answers
23 views

How to make an executable from a git repository?

Hi this is probably a very common question but from what I've looked at so far, each repo is different based on what languages were used, etc. Would anyone happen to know how to make a .exe file for ...
user avatar
  • 1
0 votes
1 answer
54 views

Over 100 Windows registry keys are changing constantly in short timespans

Out of curiosity and as a backup attempt, I've exported whole PC registry into several text files, all arranged in git repository (to be able to easily track registry changes). To be more specific, I'...
user avatar
0 votes
0 answers
14 views

Git - update files in multiple projects and push to separate repo?

I have the following setup: Projects/ projA/ .git/ .gitlab-ci.yml src/ projB/ .git/ .gitlab-ci.yml src/ projC/ .git/ .gitlab-...
user avatar
3 votes
1 answer
103 views

How do I exit from “git log”?

I have just started to use Git on Anaconda (Windows 10). When I do some commits and then I ask the git log, it shows me all the history of my commits but I do not know how to get out from it. At the ...
user avatar
0 votes
1 answer
62 views

Use ssh key from remote server to connect to git

I have a laptop with its ssh key added to github. I can work with any of my repos from this laptop without any issues. I also have a desktop computer but the ssh keys of this computer are not added to ...
user avatar
0 votes
2 answers
31 views

is it feasible to mute the extra connection info for git-bash on windows?

Assume I have a working http-server running on example.com:8080 On ubuntu, this command $curl http://example.com:8080/ gives <h1>hello</h1> while git-bash on windows gives extra ...
user avatar
  • 243
0 votes
0 answers
44 views

GIT and SSH Setup on Ubuntu 20.04

First of all, I am very new to Ubuntu so I am very sorry for probably making some beginner mistakes. What i have to do: Setup GIT and SSH What I did so far (step by step): create key ssh-keygen -t ...
user avatar
  • 1
0 votes
0 answers
52 views

Unsupported certificate option "-t" at cpanel terminal

I'm creating a ssh key authentication in the cpanel terminal as recommended by cpanel, So I'll be able to integrate git version control: https://support.cpanel.net/hc/en-us/articles/4404218477207-How-...
user avatar
0 votes
0 answers
20 views

Git fetch prune failed remotes

My employer has a script that sets up git repositories, but in doing so adds a lot of remotes that no longer exist. I would like to write a one-liner to prune these remotes. It seems that the output ...
user avatar
  • 83
0 votes
0 answers
18 views

How to have Git Gui available from spotlight and dock on MacOS?

I'm a macos noob coming from windows and I'm used to have git gui available from start menu search. I know I can launch by opening terminal and calling the command but that's not what I want here. I ...
user avatar
  • 101
0 votes
0 answers
120 views

Access to private Gitlab over SSH fails on WSL2

I have been struggling with this for some time now and I'm running out of ideas. I am running Windows 11 with WSL2 and I am working on some code hosted in a private Gitlab repository. I can access the ...
user avatar
0 votes
0 answers
22 views

Can a OneDrive folder with Office docs behave like a git repo?

I have a folder in OneDrive containing a Microsoft Word doc, an Excel spreadsheet, and some other less important files. I'd like to share this folder as a project to collaborate on with others, but I'...
user avatar
0 votes
0 answers
25 views

Update GIT version in AWS SageMaker

When I create new SageMaker notebook the GIT version that is installed is 2.18.5, which is quite old (i.e. restore command is not present). How can I update it newer version?
user avatar
0 votes
0 answers
19 views

git using gitlab repo is not allowing me to commit

Very strange situation, OS is Linux running in vagrant inside Mac, I have ssh connection to gitlab. I have branched from master git checkout -b TB-2105_update_mfa I changed some files, do git status ...
user avatar
1 vote
1 answer
131 views

The Windows command line shows my GPG keys, but git bash does not?

I installed GPG4Win and Kleopatra on my Windows 10 system, and imported my public and private key files that were created on another machine. My goal is to sign my commits in Github using these keys (...
user avatar
  • 745
0 votes
1 answer
26 views

Managing internal dependencies of a Git project?

I have a basic question about the management of a Git project with multiple components. The project I am referring to has a structure as follows: project-name ├── cli ├── api ├── webapp ├── docker-...
user avatar
0 votes
0 answers
19 views

How can the server application `gollum` write data to the disk or commit it to a git repository?

This question is probably related to either, a lack of understanding of how server apps accessed via a webbrowser on a localhost http address function, a wrong setup of my system, or to wrong ...
user avatar
1 vote
0 answers
44 views

How to create a service for git bash and adding all the c drive files and then commit

I have written the power shell script which creates the service for git bash. After opening git bash the script has to add all the c drive files and commit. but for every one hour what ever the ...
user avatar
1 vote
1 answer
30 views

How to copy recursively but ignore gitignored files?

I have a folder containing a bunch of git repositories. I would like to create a back up of this folder, but the problem is that if I just copy everything (recursively e.g. using cp -r <folder>) ...
user avatar
0 votes
1 answer
29 views

Prevent access token embedded in URL from replacing git credentials cache

Our npm project has a git dependency that is on a private server which needs credentials. Both the project and the dependency are hosted by the same server. Using a git dependency with credentials ...
user avatar
0 votes
1 answer
32 views

Output from command missing when redirecting

I'm trying to capture output and seeing strange behavior. Some output will only show if no redirection is used. Can be replicated reliably with this docker example: FROM alpine RUN apk add git RUN \ ...
user avatar
  • 101
0 votes
0 answers
122 views

Git colors not displaying in terminal

Text in both the default terminal and iTerm2 are plain white when running git commands and I want it to be properly colorized. I've reviewed this question and this question and verified the following: ...
user avatar
0 votes
0 answers
252 views

Fingerprint has already been taken Gitlab

I deleted my local Gitlab repository (using Ubuntu) and recreated it. Now I wanted to add a new SSH key so I don't have to type email/pw on every push. What I did: ssh-keygen -t rsa -b 4096 -C "...
user avatar
0 votes
0 answers
16 views

Insert line in file for each section of text a certain commit touched

I am digitizing my notes, using git to keep track. Each book of notes is a commit with several files with the date encoded YYYY-MM-DD. At first it was easy to tell what date range went with what book ...
user avatar
  • 103
0 votes
0 answers
94 views

How do I use winget to install Git without OpenSSH?

Git for windows supports external OpenSSH. What I am trying to find out is what to put in XXX to make it install without the OpenSSH client winget install --override XXX Git.Git The clue should be ...
user avatar
0 votes
1 answer
21 views

Using git completion inside function

I use ZSH and have git completions working, provided by brew install git (installed to /opt/homebrew/share/zsh/site-functions). If I git commit [TAB], it will autocomplete paths which have been ...
user avatar
  • 1,030
0 votes
1 answer
44 views

How can I push in this situation? (U+0096)

I want to push, so I wrote this code git push origin [] Git said that I don't have correct access rights and there's no repository. First, I don't know how to check my access rights, so I checked the ...
user avatar

1
2 3 4 5
52