Questions tagged [git]

Git is a distributed source control system.

Filter by
Sorted by
Tagged with
0 votes
0 answers
60 views

git clone fails on NFSv4 share when ACL is set

Our Linux servers mount NFSv4 shares exported from an Azure NFS server. The findmount commands gives this detail. rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,...
mr.zog's user avatar
  • 942
0 votes
0 answers
28 views

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

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
0 votes
1 answer
48 views

Best practices on managing Terraform project repositories

As part of a new job role, I have started learning Terraform recently. Before, my main orchestration/provisioning tool was Ansible, and the best practice at my previous place was to hold the state for ...
Yuri's user avatar
  • 3
0 votes
0 answers
23 views

How to have individual folders act as Repositories under a main Repository?

Is it possible to have a main Git Repository and each of the folders under said main repository be considered individual Repositories? I have several hundred folders under a main Repository and I don'...
Swampcritter's user avatar
0 votes
1 answer
60 views

Allow user to pull in `www-data` owned folder

I have a github workflow, that runs whenever a branch is merged to main: jobs: deploy: name: Deploy to Production runs-on: ubuntu-latest steps: - name: Checkout Code uses: ...
Bird87 ZA's user avatar
  • 113
0 votes
0 answers
105 views

git-lfs is giving me a "locking API" error when I try to push to the server

I am trying to enable git lfs on my server but it's not working. The server is already hosting git repositories which is working fine. The server is runnign Debian bookworm. What I did on the server: $...
PinkTurtle's user avatar
0 votes
0 answers
17 views

Mapping versioning for config and infra corresponding to application code version

I have an application that has something like below structure Service A - application and environment configuration, infrastructure dependencies (Queue, DB etc) etc. Service B - application and ...
user14013917's user avatar
0 votes
0 answers
41 views

Mirror from GitHub to git.kernel.org (e.g. not to GitLab instance)

I would like to mirror my repository on GitHub to git.kernel.org (normal gitolite based git hosting on linux server, not GitLab instance). Therefore I cannot use GitLab feature repository mirroring. I ...
pevik's user avatar
  • 294
0 votes
0 answers
44 views

"lxc-create: lxc-helpers-bullseye: utils.c: get_template_path: 898 No such file or directory - bad template: debian" error on Forgejo actions

I have a Forgejo server and I'm trying to setup the Forgejo runner to execute actions. The "Set up job" script worked before, but I don't know why, it's not working now. Here's all the log: ...
Mateu Saiós's user avatar
0 votes
0 answers
119 views

Need advice on ansible-pull and vault

Hope you're doing well. I have this design headache My very basic interrogation here is: how can i implement ansible-pull a "secure" way with kiss principle ? For example i use ansible-pull ...
infoman33's user avatar
0 votes
0 answers
42 views

Cannot clone a git repository from local server

I configured a local windows server to store my git repositories, I added the HTTP protocol with IIS to be able to work with the repositories with the HTTP url, now I'm able to open the url in my ...
Cesar Villaseñor's user avatar
0 votes
0 answers
48 views

How do I test a new git server?

I've just set up a git server, with Smart HTTP access, and I need to check that there aren't any problems before letting anyone else use it. However, I know next to nothing about git itself. I've ...
QF0's user avatar
  • 213
0 votes
0 answers
55 views

Nginx as reverse proxy for Gitblit with client certificate authentication. Peer closed connection in SSL handshake while SSL handshaking to upstream

We used the nginx as reverse proxy for the gitblit with client certificate authentication. Given the nginx configuration as below. server { listen 443 ssl http2 default_server; server_name _; ...
Bruce's user avatar
  • 101
0 votes
1 answer
62 views

git push command not notifying about new branch

Consider the following common case: create a new branch with git branch -b new-branch do some changes to code commit changes with git add . && git commit -m "stuff" push with git ...
Obay Abd-Algader's user avatar
1 vote
1 answer
158 views

Remote Linux server GitHub permission denied publickey issues

I am experiencing publickey permission issues when trying to pull a private repo from GitHub to a remote Linux server. Update Ran ssh -v -o IdentitiesOnly=yes -i ~/.ssh/id_rsa [email protected] command ...
Mike Hermary's user avatar
0 votes
1 answer
202 views

How to deploy a staic web page to Azure App Service

Azure Static Web Apps are fantastic for hosting simple html pages, such as your "down" pages you point azure traffic manager to when you want to do some site maintenance on your main site. ...
eos's user avatar
  • 551
0 votes
1 answer
122 views

git: checking merge conflicts WITHOUT actually doing the merge

Can't find the answer to this precise question via googling. I do normal merge, say git merge origin/master. Say some conflicts are created. I do not want that. I would like to just check, see the ...
LetMeSOThat4U's user avatar
0 votes
2 answers
97 views

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, ...
Andrey's user avatar
  • 1
-1 votes
1 answer
118 views

SSH config for two daemons on same server

My server exposes two ssh ports: one for the server itself, and one for a git daemon (gitea). My local ~/.ssh/config: Host server hostname 1.2.3.4 port 22 user foo identityfile ~/.ssh/...
lonix's user avatar
  • 978
0 votes
1 answer
192 views

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's user avatar
0 votes
0 answers
279 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-...
kwyntes's user avatar
  • 101
0 votes
1 answer
2k 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 ...
AstoriaBoy's user avatar
1 vote
0 answers
775 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 ...
Sinlog's user avatar
  • 11
0 votes
0 answers
296 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: ...
Steinbitglis's user avatar
0 votes
1 answer
52 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) (...
Luke Briner's user avatar
0 votes
1 answer
87 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 ...
mrbuttonsmeow's user avatar
0 votes
1 answer
852 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 ...
Mikhail Karakulov's user avatar
0 votes
0 answers
145 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 ...
leonardorame's user avatar
1 vote
0 answers
352 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, ...
gcb's user avatar
  • 82
0 votes
1 answer
457 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 ...
Parsa Noori's user avatar
0 votes
1 answer
304 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 ...
night-gold's user avatar
1 vote
1 answer
1k 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 ...
Corina's user avatar
  • 11
0 votes
1 answer
537 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 ...
bicyclesonthemoon's user avatar
1 vote
0 answers
327 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?
Red Hat's user avatar
  • 15
0 votes
1 answer
941 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. ...
Birla's user avatar
  • 130
0 votes
0 answers
31 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?
tonymontana's user avatar
0 votes
1 answer
160 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&...
MSalters's user avatar
  • 700
4 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 ...
Allen's user avatar
  • 143
0 votes
1 answer
2k 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 ...
Lukasz Guminski's user avatar
0 votes
0 answers
111 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 ...
Mudream's user avatar
  • 101
0 votes
1 answer
384 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 ...
elyograg's user avatar
  • 249
0 votes
1 answer
4k 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 ...
user2331760's user avatar
0 votes
1 answer
694 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 ...
Christian's user avatar
0 votes
0 answers
3k 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. ...
Max K's user avatar
  • 3
2 votes
2 answers
227 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 ...
Shaul Behr's user avatar
0 votes
1 answer
1k 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 ...
Wutipong Wongsakuldej's user avatar
-1 votes
2 answers
69 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 ...
cr001's user avatar
  • 195
0 votes
2 answers
528 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 ...
Neglected Sanity's user avatar
2 votes
1 answer
4k 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, ...
PrestonDocks's user avatar
1 vote
2 answers
586 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 ...
Santosh Baruah's user avatar

1
2 3 4 5
23