Questions tagged [git]
Git is a distributed source control system.
1,132
questions
0
votes
1
answer
45
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: ...
0
votes
0
answers
32
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:
$...
0
votes
0
answers
16
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 ...
0
votes
0
answers
33
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 ...
0
votes
0
answers
41
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:
...
0
votes
0
answers
112
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 ...
0
votes
0
answers
40
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 ...
0
votes
0
answers
43
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 ...
0
votes
0
answers
53
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 _;
...
0
votes
1
answer
60
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 ...
1
vote
1
answer
140
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 ...
0
votes
1
answer
165
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.
...
0
votes
1
answer
71
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 ...
0
votes
2
answers
89
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, ...
-1
votes
1
answer
110
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/...
0
votes
1
answer
174
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?
0
votes
0
answers
234
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
1k
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 ...
1
vote
0
answers
748
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
269
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
48
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
77
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
770
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
143
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
312
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
425
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
1
answer
279
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
...
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 ...
0
votes
1
answer
513
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
311
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
1
answer
851
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
29
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
1
answer
152
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&...
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 ...
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 ...
0
votes
0
answers
107
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
371
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
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 ...
0
votes
1
answer
676
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
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. ...
2
votes
2
answers
214
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
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 ...
-1
votes
2
answers
67
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
465
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
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, ...
1
vote
2
answers
570
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
3k
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
650
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
613
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
106
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....