Questions tagged [git]
Git is a distributed source control system.
1,129
questions
0
votes
0
answers
9
views
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-...
0
votes
1
answer
18
views
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 ...
0
votes
0
answers
70
views
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 ...
0
votes
0
answers
37
views
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:
...
0
votes
1
answer
25
views
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) (...
0
votes
1
answer
38
views
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 ...
0
votes
1
answer
119
views
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 ...
0
votes
0
answers
35
views
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 ...
0
votes
0
answers
35
views
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 ...
1
vote
0
answers
95
views
how to use PAM auth for ssh key clients?
How to unlock ssh private keys with PAM, so I can use fingerprintd module?
There are many questions here discussing PAM and kerberos for sshd auth, but I can't find anything on the client side.
Also, ...
0
votes
1
answer
134
views
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 ...
0
votes
0
answers
79
views
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;
...
0
votes
1
answer
126
views
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
...
0
votes
0
answers
75
views
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 ...
1
vote
1
answer
836
views
Remote rejected
I have the error "Remote rejected (Working directory has unstaged changes)".
The error happens when I want to push my first changes, after cloning the repository. Please note that we have ...
0
votes
1
answer
224
views
git-http-backend on apache2 can pull but not push: remote: fatal: not a git repository: '.'
(I had to replace 'http' with 'hxxp' everywhere because otherwise I couldn't post it because apparently this looks like spam)
I have set up git on my server (Debian, arm).
I use the git-http-backend ...
1
vote
0
answers
98
views
Making changes to DNS (bind) through git, how make it?
What is the correct way to change the entries in the Bind zone file and apply it through Gitlab CI/runner?
0
votes
0
answers
67
views
Configure an open-source git repository to not need username and password when clone and pull
This is my first time I create a git server. I create a git https server with Nginx as a webserver, fcgiwrap as interface to the git-http-backend, and apache2-utils to generate the password hash for ...
0
votes
0
answers
29
views
Better browser and metadata for Azure DevOps repos
My team is struggling with keeping our rapidly growing number of repos organized in Azure DevOps.
All our repos are under a single Project (it's not possible to change this).
Having an interface with ...
0
votes
1
answer
317
views
How to block git push to github
My organisation is trying to block 'git push' to repositories on sites like Github, Gitlab etc. Currently they have blocked the website, however users are still able to clone and push code via git. ...
0
votes
0
answers
36
views
Is there any way to display a MOTD when running `git fetch` or `push` or `pull`?
I have a situation where it would be useful to display a message to users when they push or pull or fetch from the command line from our internally hosted Github Enterprise service. After some ...
0
votes
0
answers
77
views
Github repository sync with server directory
I have shared Google Cloud based Ubuntu Server which is mainly used for web development. By now I have it working as web server and the code is being developed in an already created github repository. ...
0
votes
0
answers
23
views
What is the meaning of Attachments size in CodeCloud repo dashboard
What is the meaning of Attachments size and how it differs from the other size?
0
votes
0
answers
97
views
Secure access to bitbucket with hashicorp vault
Hashicorp vault helps us setup safe ssh access via certificates, but sometimes we can't setup certificate access on the host as is the case with bitbucket.
What's the best alternative in this case ? ...
0
votes
0
answers
17
views
Setting Organizational Level Git Permissions
What's an easy way to set organizational-level policies and defaults for repos within an org? For example, I'd like all of our current and new repos to have the following unless the repo admin opts ...
0
votes
0
answers
25
views
Chef in "reverse mode" : keep track of node config changes, create versions, git-like
I'd like to know if there is any way to make chef work in "reverse mode", to keep track of configuration changes made in selected nodes, and create a version of the changes detected in chef ...
0
votes
1
answer
92
views
Incomplete SSHD logs
I'm entirely confused by this one.
I've got a Docker container that periodically tries to connect to a Git server, and fails. I see the periodic connects in the sshd logs:
Aug 09 16:14:01 <server&...
0
votes
0
answers
41
views
I set human readable URLs on gitweb server and it show my filesystem
I have Debian host on VMware. I'm trying setting apache2 and gitweb.
I follow setting below:
/etc/gitweb.conf
ur $projectroot = "/var/www/gitweb";
$projects_list = $projectroot;
# enable ...
0
votes
0
answers
297
views
git fetch, git pull hangs in my VM in GCP
I am a GCP user. I have a VM that is running in GCP. But recently, when I try to run the "git pull" or "git fetch" commands to update my project, it just hung there, and there are ...
2
votes
1
answer
2k
views
SSH agent: `sign_and_send_pubkey: signing failed for ECDSA-SK ... from agent: agent refused operation` except very first time
I have an ecdsa-sk keypair that I generated and added to my github account (tied to a yubikey). If I try any connection using that key, such as git push, I get:
sign_and_send_pubkey: signing failed ...
0
votes
0
answers
54
views
Setting up a local WordPress dev environment based on a snapshot from AWS Lightsail
I'm hoping that you can help me wrap my head around how to set up a local WordPress dev environment based on a snapshot from AWS Lightsail. I recently started a new job that involves working on ...
0
votes
1
answer
1k
views
Debian: how to install a package without a specific dependency (git without Perl)
I am trying to install an apt package without one of its dependencies (specifically, git without Perl to reduce Docker image size by >50MB).
I can think of two options:
installing the package ...
0
votes
0
answers
88
views
How to let homeless user operate unsafe repository
After version 2.35, git will fail when doing git operation if user is not the owner of git repository due to a patch for a CVE issue.
A quick fix(Well, I think it is just a temporarily method.) for ...
0
votes
1
answer
274
views
Key forwarding with putty isn't working, but plink DOES work
I'm having a problem where putty's key forwarding (via pageant) to my gitlab server isn't working. I'm doing a putty session to my server, with ssh auth forwarding enabled. I see the effects of that ...
0
votes
1
answer
2k
views
How to keep duplicate repository in sync with github?
I have used github duplicate option with --bare in clone and uploaded to a different account in github.com
Used as in this link
Just as a process to handover the project to another team.
But there are ...
0
votes
1
answer
510
views
nginx: Redirection from old to new git base URL
I would like to redirect the old base url of git repositories. I use the following code:
location ~ ^/scm/git/(.*) {
return 301 /scm/repo/git/$1;
}
In the browser, the redirection works fine, but ...
0
votes
0
answers
2k
views
Mount volume to build image used by gitlab runner
I have custom image where I want to run some tests which require installed app which in turn need openGL context. I can run it in container composed this way and manually build project and run tests. ...
2
votes
2
answers
145
views
How to implement Continuous Integration with Puppet and multiple services
We're trying to implement a Continuous Integration pipeline in our environment. We have a lot of different services, each with its own Git repository. Deployment is done via Puppet, using an external ...
0
votes
1
answer
691
views
gitea ask for `gitea` password on TortoiseGit and SourceTree
I have a Manjaro system running gitea server. Now when I tried to do something with the repos on the server, eg. cloning or pushing, using TortoiseGit or SourceTree, the server will ask for a password ...
-1
votes
2
answers
45
views
Cloud + virtual private network vs. Local physical machine for company internal LARGE Git Repository: which option is better? [closed]
I am currently using a Git-Repository setup with Gitlab on a cloud server and accessing it with a public IP provided by the vendor.
However as the files stored in the Git repository get big, a lot of ...
0
votes
2
answers
247
views
ssh -A still not allowing git pull
We have a setup where our git server needs the publickeys to authenticate in order to push or pull. I am trying to do so on one of our servers and can't figure out why it isn't working. I have ...
2
votes
1
answer
2k
views
How to authenticate and push to GitHub from a CI Script
I keep my development on a personal GitLab server. In my CI/CD script, I want to push the repository to a public GitHub repo when a new tag is created.
The CI/CD runs in an ephemeral Docker container, ...
1
vote
2
answers
367
views
Server Move From Rackspace to AWS Cloud
I'm wondering specifically is there way to migrate Centos6.3 server from Rackspace to AWS cloud, Server image is 268.92 GB Uncompressed.
I've done the sync processes before and it didn't work so I ...
2
votes
2
answers
1k
views
azure static web app - how to access site files? We lost the git repo
we have a devops git repo connected to our static webapp, which auto deploys when the repo changes.
However, the dev-ops git repo is now somehow empty (like it was never created). Is there any way to ...
0
votes
1
answer
434
views
Rackspace yum install git cURL 443 Connection refused
Trying to install git in a RHEL Rackspace Dedicated Server, but am getting the following after typing in this command: yum install git
Curl error (7): Couldn't connect to server for
https://rhui....
-1
votes
1
answer
409
views
Is Gitlab the only vendor support subgroups level git repos?
Try to evaluate a few SaaS Git providers (e.g., Github, Bitbucket) other than Gitlab, but I don't think any of them support a subgroup level repo
mycompany/backend/core.git
mycompany/devtools.git
...
0
votes
0
answers
71
views
GIT-SCM bash.exe doesn't work from "Enter-PSSession -Computer myServer"?
Let's suppose I download and install Git-SCM on a remote windows 10 computer using this installer:
https://github.com/git-for-windows/git/releases/download/v2.33.1.windows.1/PortableGit-2.33.1-64-bit....
1
vote
1
answer
169
views
Using git and github to share a folder content that has to be updated daily
I have a folder that I want to publicly share with others, the content of the folder suppose to be updated daily: some files gonna be changed, some are deleted, some are added.
I would like to use ...
0
votes
1
answer
399
views
SELinux Issue - git status fatal: Out of memory? mmap failed: Permission denied
I have Centos 7.9 server running with Apache and Git, however if I do a
[root@a]# git status
fatal: Out of memory? mmap failed: Permission denied
But if Disable or Permissive the SE-Linux via below ...
1
vote
1
answer
11k
views
how to fix the npm install fails with 'An unknown git error occurred' in one folder but works in a another folder
My Server runs on Centos 8 and I installed nodejs latest (v14.17.5) and NPM (v7.21.0), both dont have a .git folder in there.
I have a very very strange issue, If I goto folder example1.com, and run ...