Questions tagged [git]
Git is a distributed source control system.
1,110
questions
0
votes
1
answer
44
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
35
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
0
answers
8
views
How to correctly configure etckeeper auto-push?
I have installed etckeeper and correctly set up a remote origin in the git repo in /etc. In /etc/etckeeper/etckeeper/conf, I have a line with PUSH_REMOTE="origin". A manual git push origin ...
0
votes
0
answers
11
views
GIT 2.35.2+ security patch issues with BitBucket
As described in https://github.blog/2022-04-12-git-security-vulnerability-announced/ there was a security issue with GIT <2.35.2
The problem I'm having is that neither solutions for BitBucket ...
0
votes
0
answers
20
views
How to setup local server on Linux for testing Dokku?
I'm new to Dokku and nginx server and I'm trying to set up server locally on Linux Ubuntu 20.04 for testing purpose instead of using one such as Hetzner (Cloud) or DigitalOcean (which already contains ...
0
votes
0
answers
21
views
How do I allow git HTTPS cloning without a password but require one for pushing?
I am using nginx, and my current server configuration is as follows:
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name git.wozzes.me;
ssl_certificate /etc/...
0
votes
0
answers
20
views
How to set up a server with cgit on the frontend and git-http-backend on the backend without nginx
I want to set up a git server with cgit on the frontend and git-http-backend on the backend. I want to avoid using Nginx/Apache/lighthttpd/etc. right now, and just get it working with uwsgi right now. ...
0
votes
1
answer
23
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
49
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
97
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
303
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. ...
0
votes
0
answers
16
views
GIT commands are taking 40 seconds on "git credential-manager get" with a call to an ADDC that is not responding, how do I disable this?
When users are on our corporate VPN they have 40 second delays in git calls (push/fetch/pull...) that having done a pcap are caused by calls to the ADDC timing out twice (20 seconds a piece). I am not ...
2
votes
2
answers
56
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
86
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
31
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
54
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
301
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
112
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 ...
0
votes
1
answer
147
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
208
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
65
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
36
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
91
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
0
answers
19
views
transfer modifications in my server to my branch git?
i want when i did modification in my files with FileZilla then push it to my branch.
we work right now with Git, everyone has a branch and each one has server FTP the changes are done just local and ...
0
votes
0
answers
32
views
git-remote-gcrypt integrity check during clone failing in only one computer
I have a remote git repository using the git-remote-gcrypt remote filter. It works properly and can be cloned normally in one computer (Ubuntu 20.04, with git-remote-gcrypt version 1.3-1). It has been ...
0
votes
0
answers
21
views
Update applications running with Systemctl once there is a newer version on remote repository
I'm currently running multiple smaller web applications on a small scale server, and I set them up to be started and restarted with a systemctl service, I specifically made these apps a systemctl ...
0
votes
0
answers
24
views
how to limit git bash to use https url alone and to use only one git platform to push the code to private repo?
We want to setup security to gitbash cli on our shared windows10 virtual desktop.
Non-admin Users should use only https url (example: https://gitlab///). Using personal access tokens & ssh keys ...
0
votes
1
answer
201
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 ...
0
votes
1
answer
5k
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 ...
0
votes
1
answer
163
views
Forward local ssh key to remote host
I'm using ansible and i'm wondering. Is it possible to rewrite a local ssh key to a remote machine? I need to clone a repository using my private key on a remote machine. I cannot add the key from the ...
1
vote
0
answers
15
views
Migrating git-based site workflow to new server
I have a production site that uses a hub/master git setup like this: http://joemaller.com/990/a-web-focused-git-workflow/
Looking to migrate to a new server/host and I'm wondering how I migrate the ...
0
votes
1
answer
259
views
Gitea offers wrong SSH key
I'm running Gitea on a virtual machine that is publicly accessible under gitea.myorg.foo. Here's the server part relevant to my SSH configuration of my configuration file:
[server] ...
1
vote
1
answer
127
views
Permission denied for gitweb.cgi on CentOS
I've set up gitweb on my web server. I have created projects on the server. I can add commits to them and also clone them remotely.
The gitweb "homepage" does display and the static files ...
0
votes
1
answer
149
views
How to remove git from a specific folder?
I have a CentOS 7 system. It has git 2.27.0 installed, but that install, for reasons we can't figure out, won't talk to our https gitlab instance. It keeps failing on "unable to find remote ...
0
votes
0
answers
5k
views
Host key verification failed SSH Github
I've taken a relatively simple approach to try and securely clone my GitHub repo but still struggling.
On My Mac I ran specifying name as MyKey and no password
ssh-keygen -t rsa
I uploaded the ...
0
votes
0
answers
66
views
GOGS reverse proxy on IIS
I'm trying to reverse proxy the sub.domain.com/gogs to localhost:3001 - GOGS port.
I tried creating a new application on the default web site
The folder that it points to is the main gogs folder. I ...
0
votes
1
answer
435
views
Can Ansible git-module install the latest tag from a repo?
I want to install recent, but not the HEAD. Instead, I'd like to install the most-recent tag of a remote repository -- on the assumption, that this is, what the maintainers consider a "release&...
0
votes
0
answers
220
views
git clone to EC2 from corporate gitlab
I am trying to git clone a repo from corporate Gitlab to AWS EC2. So far I have been able to clone a public repo from github without any problems. I am also able to SSH into this instance without ...
1
vote
0
answers
47
views
mirror/backup of github repository with metadata
(How) would it be possible to make a full backup/mirror of a github repository, including
all branches and tags (with full history)
all (open) pull requests
all premissions/access restrictions
...
1
vote
1
answer
568
views
Meraki VPN behind NAT breaks Bitbucket Git on WSL2 (Ubuntu 20) on Windows 10
I access two Meraki VPNs from my Windows 10 Pro (10.0.19042 Build 19042) machine:
One which is not behind a NAT - when I switch this on, I can do git clone [...] or git fetch [...] just fine.
Second, ...
1
vote
2
answers
351
views
Automatically create a new subdomain on server
I have a Github project with three branches, master, staging and production.
When the staging code is merged with the production branch, a GitHub action runs and deploys my PHP website on my example....
0
votes
1
answer
54
views
Is a git repo as html content safe? [closed]
I've been searching with a couple different terms but didn't find exactly what I was looking for.
I got the idea to start a blog with a flat file CMS. It would be handy to have the pages in a git ...
0
votes
1
answer
46
views
How to configure Windows 2012 Server to receive GIT pushes [closed]
I'm new on GIT, and I would like to configure a Windows 2012 Server to be a GIT repository (--bare) so the developers can clone and push updates to this server.
I can't find any documentation to learn ...
0
votes
1
answer
25
views
What is a good way to keep multiple directories' contents synced with releases from a GitHub repo?
I work for a company that maintains lots of custom WordPress plugins and themes for our network of myriad WordPress sites. The repo managers have it set up so that webhooks are added to the repos and ...
0
votes
0
answers
51
views
Performing a Git Pull With Truncated History?
On my production server I have a deploy script to do a git pull origin master among other deployment tasks when it receives a github webhook saying there's a new push to master. It works, but it keeps ...
2
votes
4
answers
13k
views
Git, WSL2, SSH: unexpected disconnect while reading sideband packet
While attempting to clone a remote Git repo using SSH I got the following error:
git clone user@remote-repo:project.git .
remote: Counting objects: 187444, done.
remote: Compressing objects: 100% (...
0
votes
0
answers
73
views
Sonatype Nexus doesn't update single git submodule
I have this setup:
-a git repository called MyRepo. This repo has 5 submodules (A,B,C,D,E)
-a Jenkins instance that auto-builds MyRepo. On post-build steps there's a simple script that executes:
#!/...
0
votes
0
answers
69
views
Authorizing a webhook service for git pull
I have a Webhook (https://github.com/adnanh/webhook) configured as a service. When triggered it runs a bash script with does a few commands including a Git Pull.
I have configured my Ubuntu 20.04 ...
0
votes
2
answers
157
views
Can I get the expected author/committer name using hooks?
So I have a git repository that is a bit unusual, in that multiple people work on the same repository, using sudo. (The goal in the long run is to get away from this, but for now, we're only taking ...
0
votes
0
answers
533
views
Is there a way to programmatically push to GitHub using an oauth token?
I want to use a bash script to push to a "build repository" for my Symfony app, which can then be deployed directly to a server. I have the following so far:
#!/bin/bash
cd ..
rm -rf ...