Questions tagged [git]

Git is a distributed source control system.

Git is a source control system that allows for many people to work on the same project simultaneously. It is distributed, makes it possible for many different branches of the same project to co-exist at the same time, and offers many other advanced features.

Git was originally authored by Linus Torvalds, the creator of the Linux kernel, and the official Git homepage is at git-scm.com

For git quick guide, see gitready.com. More information, see wikipedia

1127 questions
0
votes
2 answers

Create git server with many repositories

Please consider my question from a technical point of view. I am faced with the problem of access control to git repositories. I need to somehow distinguish the access of certain ssh-keys. That is, the key should give access to one repository, not…
Andrey
  • 1
0
votes
1 answer

Being one local directory for both GitHub and GitLab remote repos

How do we have our one local directory for both GitHub and GitLab remote repos, always work as flawlessly as if each of two Git kind local repos is for each of the remote one?
Nonok cantik
  • 103
  • 2
0
votes
0 answers

Alias custom domain to GitHub repository for git clone

What I'm trying to do is setup a custom domain name so that it can be cloned as a git repository using git clone. For example, $ git clone https://my-domain-name.tld/ # would be cloned into my-domain-name.tld # and $ git clone…
kwyntes
  • 101
0
votes
1 answer

Terraform init error: Failed to download module (local changes would be overwritten)

I have a brand-new local Terraform project that I have just cloned from gitlab. I have not made any changes to the code, but when I run terraform init I get the following error, repeated for every module in the project: Error: Failed to download…
0
votes
0 answers

SSH connection to gitlab server not working

I have recently installed a gitlab server on a Fedora Server VM hosted locally on my computer. To install the gilab server I used this command : sudo yum install -y gitlab-ce. I had no errors during the installation but when I try to connect to the…
Sinlog
  • 1
  • 2
0
votes
0 answers

How do I give "git lfs" access my self-hosted MinIO instance?

I have a MinIO server that I have set up as follows (docker compose): services: minio: image: minio/minio ports: - "9000:9000" - "9001:9001" environment: MINIO_ACCESS_KEY: MINIO_SECRET_KEY:…
Steinbitglis
  • 183
  • 1
  • 8
0
votes
1 answer

Cannot update Github key from CLI

I have only just tried to use github via git on the cli for the first time since they leaked their key and it needed resetting. I added the new key into known_hosts under users/luke/.ssh (Windows 11) (didn't work so I removed all existing known…
0
votes
1 answer

I want to connect to my repo via SSH on a remote server, do I need to store my private keys on the server as well?

I'm following these steps to be able to connect to my BitBucket account/repo on a remote server. I'm a bit confused. I already have a separate pair of keys for BitBucket (i.e. to do stuff on my local machine). So, I need to generate a new pair of…
0
votes
1 answer

How to force custom permissions on files created by git checkout command?

I need files created by git checkout command to have custom permissions. Even with core.sharedrepository=0777 setting git creates working tree files with 0644 permissions. But I want it to be at least 0664 so someone from the group could write to…
0
votes
0 answers

git clone t2.micro new or existing instance not created git repo folder , shown error. fetch-pack: invalid index-pack output

I already have a t2.micro instance, but the git clone is t2.micro, and it was successfully cloned without error. fetch-pack: invalid index-pack output. I tried git clone again with another newly created t2.micro instance and received the same fatal…
0
votes
0 answers

Git for CI (read only repository)

I have a cloned repository I use only for building some programs. After each build, there are some files added to the directory where the repository was cloned, hence, when I want to do a git pull, I get errors like these: error: cannot pull with…
leonardorame
  • 327
  • 3
  • 14
0
votes
1 answer

Any security reason not to use `root` user for git remote operations?

I've got some configs (docker-compose related files) which I like to store them via git on a private github repo. The configs are owned by root. Is there any reason to change the ownership of the files to do the git push and git pull and via another…
0
votes
0 answers

fatal: repository not found (git + http + nginx + fastcgi)

I am trying to serve git repositories using Nginx. I have the following configuration for Nginx server: worker_processes auto; error_log /var/log/nginx/error.log notice; pid /var/run/nginx.pid; events { } http { include…
enriquesb
  • 1
  • 1
0
votes
1 answer

GIt lfs on s3 using gitea can't clone

We are doing a test install of gitea and trying to use the gitea lfs to s3 feature. The configuration is straightforward and we did it like that: [lfs] #PATH = /opt/gitea/data/lfs STORAGE_TYPE = minio MINIO_ACCESS_KEY_ID =…
night-gold
  • 133
  • 8
0
votes
0 answers

git and/or azure devops treat folders that start with . as submodules

I have a problem with the pipeline where it wouldn't checkout the .iac folder. However, when I changed it to iac (from .iac)it worked. Additionally I am seeing that the .azuredevops folder isn't being checkout either. I thought it may have been…
Joy1979
  • 111
  • 3