Questions tagged [git]

Git is a distributed source control system.

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

Permission denied after a git clone

I have another strange behaviour on my server, it is very similar to this one : Very strange AH00035 error Here is the context : I already have an intranet website which works fine. I want to use git ...
1
vote
0answers
17 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 ...
0
votes
0answers
13 views

Why can't a user write to dir using git post receive hook on ubuntu?

I am trying to push code to a remote server via git post receive hooks. There is a remote origin on the remote server that has a post receive hook with this command: cat /home/git/grafana.git/hooks/...
1
vote
0answers
24 views

Escaping “<<EOF” inside bash function definition [migrated]

I often use "git commit -F- <<EOF" in order to write an EOF-terminated string as a commit message. Using alias commitml="git commit -F- <<EOF" Works as intended. ...
0
votes
1answer
77 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
2answers
26 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
0answers
15 views

Git in windows explorer easy way to show branch

I am working with a team of designers (not coders) where we have a lot of folders for our customers with these folders we use torturous git to change branches and test out our designs before we ...
0
votes
1answer
45 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
1answer
21 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
0answers
12 views

How many connections does it take to clone a git repository?

Context: I'm investigating why a job runner is triggering throttling rules on a firewall protecting a git server. The rule triggered is based on the number of SSH connections over a minute. The jobs ...
0
votes
0answers
10 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
0answers
147 views

When executing action I get `Error: Process completed with exit code 1`

I am trying to setup github actions to deploy my application. My bash-script to start the deployment process looks like this: #!/bin/sh set -e vendor/bin/phpunit (git push) || true git checkout ...
0
votes
0answers
36 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 ...
1
vote
2answers
2k 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
0answers
46 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
0answers
30 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
2answers
31 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
0answers
109 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 ...
0
votes
0answers
27 views

Git post receive hook gets permission denied without any reason

I am having trouble with some user rights on ubuntu 16.04 while pushing code via git to the server and deploying via post-receive hooks. Somehow there is a permission problem: Tying to push to server: ...
0
votes
1answer
98 views

php will not allow me to do `shell_exec('git pull origin master 2>&1');`

When I run the script <?php chdir('/var/www/html'); echo shell_exec('git pull origin master 2>&1'); ?>, I get the error message: error: cannot open .git/FETCH_HEAD: Permission denied ...
0
votes
1answer
36 views

How can I check the timestamp of a remote commit without cloning the repository?

There is a Git sub-command called ls-remote which allows listing of all the branches and commit hashes of the leaf node/tip of each branch. How can I also query the timestamp of those commits, or ...
0
votes
1answer
195 views

Gitlab push very slow - Gitlab-CE

Gitlab push is very slow, Is there any settings I can modify on the internal gitlab-ce server that can make the git push much faster? Right now the push speed is 13.00 KiB/s. I have some large repo ...
0
votes
2answers
524 views

Do I need to have my private ssh key stored on my server in order to git clone repos while ssh'd into the server?

I generated my ssh key on my local machine. I then used the following command to copy my public key onto my server: ssh-copy-id username@remote_host. That went smoothly. I have confirmed that my ...
0
votes
1answer
107 views

Jenkins - Git fetch not fetching any branches

Newly setup jenkins isn't scanning any branches. I tried the global creds and multipipeline creds as well. The creds are regular http username and passwords. Here is the log: Started [Tue Dec 08 16:...
0
votes
0answers
9 views

teamcity bitbucket pull requests in forking model

The users in an org, want to use bitbucket like the opensource github mode, with forked repositories, where they submit personal pull Requests from their own origins to an upstream repository. How do ...
0
votes
0answers
31 views

bitbucket server with existing git repo on local filesystem

I have installed bitbucket server on my existing server that hosts our git repo and jenkins. Our git repo is located at /home/git/myrepo.git How do I import that same repository into bitbucket on the ...
0
votes
0answers
23 views

Repository inaccessible existing

I discover the Azure repository. I created a repository and play with the rights and suddenly the repository is no longer accessible. I can't find it but yet when I want to recreate it, azure tells me ...
0
votes
0answers
126 views

Git push freezes at writing objects and gives 504 error

Problem Git hangs while writing objects for a 81 kB repo over HTTPS (SSH is not allowed). The specific error message from Nginx's access.log is as follow: POST /Hello-World/.git/git-receive-pack HTTP/...
0
votes
1answer
369 views

How to do a git push using ansible

I'm using Ansible to make a pull i do this tasks: - name: pull from git git: repo: git@gitlab.com:xyz.git dest: /root/Development/abc update: yes version: ...
3
votes
1answer
67 views

Git cloning large repositories hogs memory

Serving a fairly large repository (9.5Gb for the bare .git) everytime someones needs to clone it it will spend a large amount of memory (and time) during the "Compressing objects" phase. Is ...
0
votes
0answers
22 views

Git ignore is ignoring sym.llinks?

In a laravel project I have a storage folder and inside it, I have an app folder (normally). So the full path is: /var/www/html/myproject/storage/app Now I have a file server and I wish to serve the ...
0
votes
0answers
55 views

Classic ASP application application variables lose values whilst app is running after W2K12 -> W2K19 upgrade

Since upgrading to Windows 2019, IIS 10, we seem to be having an issue when making deployments of our Classic ASP application using Azure DevOps (Git). When making a deployment, un-related to the ...
0
votes
0answers
75 views

Git pull a specific tag itself?

Because Jenkins pulls a git repo without tags, I'd like to pull the specific tag I'm interested in. Is there a syntax for this? I'm aware of git syntaxes that pull all tags, and syntaxes that pull ...
0
votes
0answers
23 views

Use HTTP proxy for a specific git sub module project

Given the following git submodule: [submodule "helan"] path = helan url = https://github.com/ebuildy/helan [submodule "common"] path = common url = ../common On ...
0
votes
1answer
28 views

git-receive-pack fails from Windows cmd ssh session

I am trying to set up a shared git repo on my Synology NAS. I have checked many step by step articles but don't get why my regular git user cannot clone the repo from Windows cmd and Visual Studio. ...
1
vote
0answers
82 views

git clone does not work in (sshfs) mapped drive in windows

We have mounted Z: drive using sshfs in Windows 10. We are able to clone our repo in C: drive but not on the mapped network drive Z: Error: $ git clone https://<repo>.git Cloning into ... ...
0
votes
2answers
254 views

Local GitLab Not Accepting SSH Key

I checked out this post, but it seems like it was written for OSX and/or Windows, and I'm not really sure how to apply it to my situation: GitLab Not Working With SSH-Keys I set up my GitLab instance ...
0
votes
0answers
21 views

Nginx git server authorization only for pushing

I deployed a nginx git server and want to request authorization only for pushing. Tried a lot of solutions, none worked for me. Here is my server configuration server { root /var/www/mysite; ...
1
vote
1answer
49 views

How to prevent node js from serving .git folders and all the files under .git

I know that using .htaccess file can restrict files to be served under .git but how do i acheive the same if i'm using node.js server. I use forever to start/stop the servers.
0
votes
0answers
106 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
2k 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
51 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
26 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
166 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
114 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
218 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:...
1
vote
0answers
338 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
79 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
57 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 ...
2
votes
0answers
76 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 ...

1
2 3 4 5
22