Questions tagged [git]

Git is a distributed source control system.

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

How do i authorize same ssh key across multiple machines

I've got a private Github repo I want to access from two different Linux machines. For the first machine, I followed Github's instructions for generating SSH keys, and added the resulting public key ...
0
votes
0answers
30 views

Authorizing Access to git-http-backend Using Nginx http_auth_request Feature

I am attempting to authorize access to Git repositories using a Python authorization server behind an NGINX server. I have seen a plethora of examples of how to handle authorizing git-http-backend ...
0
votes
0answers
27 views

Is it possible that personal access token is leaked thru' git log? [closed]

When cloning a Git repo with HTTPS URL, the password or access token can be put there in the URL after username, for example: git clone https://USERNAME:PASS_OR_TOKEN@github.com/some-project.git Is ...
0
votes
0answers
173 views

WARNING: git-filter-branch has a glut of gotchas generating mangled history rewrites

I want to clean a large file from my local git repository (and incidentally clean my repository to reduce size). This is my bash: #!/bin/bash bigfile="/path_to_mygitproject/bigfile.tar.gz" git filter-...
0
votes
0answers
14 views

GIT - Clone/pull git local repo from DMZ to central server in LAN through SSH proxy

This might be a convoluted way to go about it so please tell me if there's a simpler way. Context : I have a linux "boxA" in a DMZ and a linux "boxB" in my LAN (as well as "boxC" which is my central ...
0
votes
0answers
15 views

remote windows 10 git enclosing repo name in single quotes

I'm trying to push from windows 10 to a bare repo on another windows 10 system via ssh. I get the following error: fatal: ''test2.git'' does not appear to be a git repository fatal: Could not read ...
0
votes
1answer
49 views

Git: trying to remove a local branch, but permission denied because of a locked file

On my Linux server there were several git branches I wanted to remove. I used git branch -D branche_name and deleted all these branches except for one. For this one branch called feat/implement-h I ...
0
votes
0answers
50 views

Git Commit workflow that only commit when GPG is GPG signed from specific 3rd party

Here my scenario. Is there a way so that when you git commit, it will only commit into the branch if the GPG key used as been GPG signed by a specific person or organization or 3rd party. What I'm ...
0
votes
0answers
9 views

Return code: 137 error when git commit is issued

I'm using rex to run a git commit command on a local machine, though I don't think this problem is specific to rex. Here are the logs from rex: [2020-04-29 01:02:06] INFO - Successfully executed sudo ...
0
votes
0answers
68 views

ssh public key auth fails for private git server

I want to git push from a local debian 10 user to my server (debian 10) where I have set up a git server under the username git using ssh public key auth. The problem is: it still asks for the ...
0
votes
1answer
37 views

Git push failed to GCP source repository

For a few days, git push is failing: $ git push -v Pushing to https://source.developers.google.com/p/xxxxxxx Counting objects: 6546, done. Delta compression using up to 2 threads. Compressing objects:...
0
votes
0answers
21 views

Should I start a new nodejs process to listen for webhooks or reuse an existing one?

I have a server that runs an nodejs app. PM2 keeps it going after restarts. I would now like to listen for Git webhooks. So when the Bitbucket repository is updated, it will send a payload to my ...
0
votes
0answers
12 views

server response time for SSH git clone operation

I found the git server application prints server response time in log only after below step completed during an git clone operations. ( I am using Bitbucket server) Example : Receiving objects: 100% (...
0
votes
0answers
21 views

Continuous deployment

I have a nodejs application using expressjs. This server is handing a website built on vuejs, an application using angular and another angular app. Everything is working and I deployed to AWS eb ...
1
vote
0answers
44 views

Git pull in Powershell and how to get the output of a command

I am pretty new to using PowerShell for automation. I want to ssh into a machine, and run a git pull in it. This works when I do it through the powershell manually, but not when I automate it through ...
1
vote
1answer
25 views

How can one identify what changes the SELinux file context of a file?

I'm noticing some files within a web directory with changed file contexts that deviates from system policy. There are developers that run git pull against at a higher part of the web directory and I'm ...
0
votes
1answer
25 views

Automating SSH authentication to GitHub - what should ~/.ssh/config file look like?

I'm trying to automate logins to GitHub using a private key, so that I can do "git pull/add/commit/push" from a BASH script. If I put this in ~/.ssh/config, it works: Hostname github.com User git ...
1
vote
0answers
20 views

Track multiple directories with etckeeper

I'm trying to provide a solution to use etckeeper as a keeper of multiple locations (directories). I'm using Debian 8. With the default config etckeeper "watches" the /etc directory but I want to have ...
0
votes
1answer
19 views

Would scp *.git to migrate one server to another frowned upon?

I need to migrate a Linux server that I’m going to be sunsetting shortly. I’m not a git user but on server1 I have in say /opt/repos/git a couple dozen projects app fooX.git. If I scp overnight when ...
0
votes
0answers
16 views

Git - push to gitweb instance

I have gitweb installed in my server. I can push using ssh but I want to know if it's possible to push via http, with an username and password
1
vote
0answers
13 views

Bitbucket YLM pipeline to deploy on Digital Ocean

I am following this guide to create a pipeline to deploy my Django project to Digital Ocean, Ubuntu 18 droplet. What I have done SSH key generated and added to my remote server and bitbucket Synced ...
0
votes
1answer
36 views

Move Gitlab to new ip-adress, lfs stop working. How to fix?

We have GitLab 11.2.1-ee installation in our local network It had ip-address 192.168.1.100 before We use Git LFS in our projects And all work fine before we changed ip address of Gitlab machine. We ...
0
votes
0answers
13 views

using GitLab userinterface in my browser to manage my webpage

My employer gave me an URL to a git repository and my login data to edit a certain part of my organization's web page. Can I use the web-interface from GitLab or something similar to easily edit and ...
0
votes
1answer
96 views

Squid Http proxy doesn't work in git clone

I've installed the Squid through Docker and tested with curl and browser, it works fine! And then I'm going to set the Http proxy to git, the below is my command: git config --global http.proxy http:...
0
votes
0answers
53 views

Any downside to using `sudo git` to upload `/etc/nginx/sites-available/` and `/etc/nginx/ssl/` config files on github?

I'm contemplating uploading config files from /etc/nginx/sites-available/ and /etc/nginx/ssl to a private Github repository. Doing so would require me to use git with sudo (or from root user) for the ...
0
votes
0answers
41 views

what is the command to convert a private key from DES-EDE3-CBC to AES?

How to convert an openSSH key to AES ? I have a git connection reset by peer when trying ssh -vvv my_gitlab_server It works for my colleague having a AES-128-CBC type private key when mine is DES-...
0
votes
1answer
63 views

Making git daemon serve the repo I created

I've been wracking my brain over this and came to a possible conclusion with no solution. First, my dilemma. I have a project where I can create a repo programmatically. I can edit the description of ...
1
vote
1answer
47 views

Gitolite 502 when trying to clone/fetch any repo over http

I am trying to configure gitolite to work on nginx with gitweb. And despite gitweb working flawlessly and recognizing all the access control functionality provided by gitolite, I can't seem to be able ...
0
votes
0answers
10 views

Deployment script - how to undo last migration

Many development frameworks utilise migrations as a method of versioning database. Migration files have code for applying migration (let's call this up() method) and code for reverting/undoing the ...
0
votes
1answer
53 views

Nginx HTTP authorization only for git push

I host a private git server using Nginx. I'd like anyone to clone into my repos (without authorization) but require authorization if they try to push a commit. My Nginx configuration is as follows: ...
1
vote
0answers
21 views

Make cloning from personal git server authenticated

I have followed this tutorial for having a personal git server, over Internet. Everything works perfect, except cloning is public on Internet. What I want is just users in /var/www/html/git/passwd be ...
0
votes
0answers
60 views

Gitlab-Pipeline connection refused

whenever I try to run a pipeline on gitlab it fails with the following error: Fetching changes with git depth set to 50... Initialized empty Git repository in /builds/lukas/test/.git/ Created fresh ...
0
votes
0answers
39 views

Ansible git module: does it run git hooks?

When the ansible git module is managing a git repo, do the git hooks run? I'm particularly interested in the post-merge hook. The alternative would be to run a handler when the repo changes; is ...
0
votes
0answers
84 views

ssh ProxyCommand not working in centos but works for Ubuntu

This is my ssh config file in ubuntu located ~/.ssh/config Host gitlab.com User git ProxyCommand nc -x 127.0.0.1:1080 %h %p and it works but the same config in ...
0
votes
0answers
159 views

ssh in git-bash, slash direction cause “not recognized as an internal or external command”

I want to ssh to github in git-bash under windows 10. And it's necesarry to use ssh key with passphrase and using a socks5 proxy. So, there are 3 files id_rsa, id_rsa.pub, config in fold c:\users\[...
0
votes
1answer
65 views

Does Git send out information over the internet? [closed]

If we install git on a server and use SSH protocol or HTTP/S to pull/push repo, Does it count like send out information over internet? How can I make sure that does not happen on a windows machine.
0
votes
0answers
15 views

How to get rid of `/` in `[project-name]/.git` displayed in gitweb?

I have a git server running with gitweb as my frontend. I noticed that there's a forward slash in my project name Hello-World/.git which is annoying me. To clone the project I also have to include the ...
0
votes
0answers
23 views

symlink issue with saltstack pillar data

I'm working with an inherited system where AWS infrastructure is currently being managed via Terraform and Salt, with pillar data stored in a remote git repo. In the original repo I can see the team ...
0
votes
0answers
79 views

gitweb on nginx …to unix:/tmp/fcgiwrap.sock failed (111: Connection refused) while connecting

I've gone through the answers provided in similar posts but I am still getting a Connection refused error when trying to connect to git.example.com. The exact nginx error message is as follows 2019/...
0
votes
1answer
111 views

Best solution to allow external developers access our internal Git server?

My company outsources a lot of software development. Usually the suppliers manage the source code until the application is finished and then hand it over to us. This has obvious downsides: (1) we have ...
0
votes
0answers
87 views

Permission issues with NFS exporting FUSE (mergerfs) filesystem (git permission issues)

I have a mergerfs filesystem /data which merges /data1 /data2 /data3 /data4, each of which are ext4 filesystems. I am exporting the directory /data/coihome (actually a directory in /data3) via NFS to ...
1
vote
0answers
45 views

gitweb: Use Apache HTTP basic authentication for repository authentication

I use gitweb to serve remote Git repositories on a server running Apache2. Everything is setup with automatic redirection from HTTP to HTTPS and Basic password authentication (though this might change ...
1
vote
0answers
67 views

git-http-backend blocking with fastcgi on nginx

I have git-http-backend serving git repos through an nginx fastcgi proxy. The nginx config looks like: server { listen 443 ssl; server_name git.example.com; ...
2
votes
0answers
156 views

Long-running git post-receive hook causes timeout

I have a post-receive hook written in python, whose main function is to deploy the updated branch. It clones the repo into a new dir, and runs environment setups like npm install and building/...
0
votes
0answers
35 views

git smart http + apache mod_auth_openidc

I have a working git/gitweb apache server using "smart http" and basic authentication. I've switched the authentication to Azure AD via mod_auth_openidc - this works fine for gitweb, but git breaks on ...
0
votes
2answers
316 views

Limiting shell access for git users, but still allowing push / pull access

I'm host a git repository on my server. Anyone can push / pull from the following remote url: ssh://git@example.com/opt/git/my-project.git Specifically, anyone with ssh access to the git@example.com ...
0
votes
1answer
50 views

Running a privelaged script from a post-receive git hook on my server

Say I have the following workflow to deploy a new version of my webapp. It's a small app so all the build + deploy work is done on the same server (example.co) A user executes git push which pushes ...
0
votes
1answer
49 views

git pull on EC2 instance accessed by ssh works on some workstations and not others

I have two machines at work, a laptop and a desktop. Both are Ubuntu. Both have synced .ssh folders including the RSA keys. On both I can ssh to our EC2 instance succesfully and work within the EC2 ...
0
votes
1answer
119 views

How to push code in GitHub bare repo with private / public keys [closed]

I have a server where I have a bare repo with a node.js application. I pushed the code without the node_modules and installed them directly on the Server. Heres my problem: The changes (node_modules) ...
0
votes
1answer
682 views

setup Gitea SSH with nginx & openssh-server

I've just setup my first local Gitea server and everything works fine except SSH. Normal SSH works fine but not when I try to interact with Gitea. The shown URL is ssh://git@gitea.xxx.local:123/user/...

1
2 3 4 5
22