Questions tagged [git-server]
31 questions
0
votes
0 answers
Used git push --mirror to copy files from existing repo to the new repo. Now commits to the new repo are causing commits to the existing repo
we in our team created a new repo in github https://new-parent-cicd-pipeline.git from an existing repo https://existing-parent-cicd-pipeline.git using the commands
$ git clone --bare https://existing-parent-cicd-pipeline.git
Then, go into the…

Robo
- 1
0
votes
0 answers
Is there any way to get raw data from .git folder?
I was trying to make my own git server. Something similar to github. Its made using a vm instance in GCP. I would like to add the feature of directly viewing the text in the files as well as the folder structure.
But as per the current architecture,…
0
votes
1 answer
serverside git restrict branch creation to specific users
I'm thinking this needs to be done with some type of git hook.
On our central git server (where everybody merges to) - we have special (reserved) branch names, for example: any branch starting with RELEASE_ shall only be made by the CM team members…

user3696153
- 568
- 5
- 15
0
votes
1 answer
private git server, use google auth?
Thought this would have been answered long ago, but couldn't find one.
Private git repo currently using ssh keys for access. I'm wondering what is involved in making it use google oauth keys. Users are already using oauth keys for redmine access.

Gary Aitken
- 233
- 2
- 12
0
votes
1 answer
Git - How to get user.name of the pusher when in git server?
I have a CentOS server that has a Git server in it. When a user is running git push, I want to get the user.name of his config. Is it possible to get that within the hooks like update or pre-receive file?

kodfire
- 1,612
- 3
- 18
- 57
0
votes
0 answers
Git Remote Access
I'm currently working on a solution where I intend to view and edit a remote git repository existent on my server machine.
I'm wondering if it is possible to gain access to that remote repository without checking out/cloning the repository itself…

João Mendes
- 47
- 6
0
votes
1 answer
Private git server: git clone asks for git@host's password
I've setted up a git private server on my desktop pc (OS ubuntu 21.04), and I whant to be able to work on those repos with my laptop or my desktop pc
Already created git user (root,my_user,git)
ssh-server service on
ssh rsa keys generated…

alejandro00
- 144
- 6
0
votes
2 answers
Is there a way to reverse ignore files on a git server (such as GitHub)?
Question
Is there a way to define patterns to not pull files from the git server on a git clone or git fetch? This may be called a "reverse git ignore".
Problem
What I have is a repository of dotfiles and I want to have a readme in the root of the…
user5639068
0
votes
0 answers
How do I create a data access layer that talks to git on a git server?
Problem
I want to create a personal micro-Github on a server, but how does one talk to git on the server in an elegant manner? Would it be wise to the send commands to the git-shell using PHP's exec? Would I be talking to git directly? To understand…

eurekasfray
- 27
- 1
- 5
0
votes
1 answer
How to push to LAN repository
I have a git bare project setup on my laptop, from my desktop I cloned it, modified a couple of files and wanted to push it, but getting error:
remote: error: unable to write sha1 filename //MACBOOK/Macintosh…

Nodir Nasirov
- 1,488
- 3
- 26
- 44
0
votes
1 answer
How to fix "ssh permission denied please try again error" in git configuration on Windows
I am trying to configure git server and client on two local windows machines. I installed git software on both the machines. Enabled openssh server optional feature on the server and created a bare repository on the server. Then tried to clone the…

Parashuram
- 303
- 2
- 6
- 19
0
votes
1 answer
Commit software with version number as tag and process tag in server hook
I have a toolchain which builds my documentation of a project everytime when a new push arrives to my Git server.
When there is no specific version, the documentation should be build with the reference called "latest". But when I decice to set a…

A. L
- 131
- 2
- 12
0
votes
0 answers
Merge on Raspberry Pi2 git server
Hello Stack Overflow community,
I have configured a git server on my Raspberry PI 2 with the current Raspian Image (March 2018).
In my git repro I have two branches:
git@raspberrypi:~/database.git$ git branch
comments
*master
If I merge the…

HerrTux
- 1
- 1
0
votes
0 answers
Technical reasons to use bare with a Git server
I understand that a Git server is generally supposed to be a bare repository. According to https://stackoverflow.com/a/2538611/271577 , this may be merely a recommendation: "It is usually recommended that the remote repository be made bare as…

Brett Zamir
- 14,034
- 6
- 54
- 77
-1
votes
1 answer
Why all the script in my git hooks (pre-commit, post-commit, pre-receive, pre-push etc) do not run?
Why all the script in my git hooks (pre-commit, post-commit, pre-receive, pre-push etc) do not run?
Note:
this question is not a duplicate;
I have try the answer to each of the other questions but none of them work.
I did chmod +x, added the path to…

kams
- 45
- 1
- 12