Questions tagged [git]

Git is a distributed source control system.

Git is a source control system that allows for many people to work on the same project simultaneously. It is distributed, makes it possible for many different branches of the same project to co-exist at the same time, and offers many other advanced features.

Git was originally authored by Linus Torvalds, the creator of the Linux kernel, and the official Git homepage is at git-scm.com

For git quick guide, see gitready.com. More information, see wikipedia

1127 questions
30
votes
5 answers

How to install git to red hat enterprise linux 5.3 x64?

How can I configure yum to use some repository which has git rpms?
BuyManAFish
  • 423
  • 1
  • 4
  • 7
28
votes
2 answers

What are the pros and cons of SSH and HTTP for a git server?

I want to setup a git server. I have found several how-to's, well detailed. Some describe the installation for a git-server accessible thru Ssh, while others, accessible thru HTTP. ( Others even advise tools like gitolite ). Are there pros or cons…
Stephane Rolland
  • 449
  • 2
  • 7
  • 14
27
votes
5 answers

Git shell not enabled?

I'm trying to install git server. When I set default shell for my git user to /usr/bin/git-shell I get an error upon login as git. fatal: Interactive git shell is not enabled. hint: ~/git-shell-commands should exist and have read and execute…
Peter
  • 405
  • 1
  • 5
  • 8
25
votes
7 answers

git clone - fail instead of prompting for credentials

When cloning git repositories in automated tools - web front ends, CI systems, sometimes the git clone invocation opens up a prompt asking for the username and password (for example, when cloning a non-existent Github repo or on a new node missing…
Tin Tvrtković
  • 353
  • 1
  • 3
  • 4
25
votes
2 answers

How to uninstall git installed from the source?

I installed the git using this article. Now I want to uninstall the git. How to do it?
Mikhail
  • 549
  • 1
  • 4
  • 10
24
votes
4 answers

Enabling nginx Chunked Transfer Encoding

It looks like nginx 0.8.35 may support chunked transfer encoding: Changes with nginx 0.8.35 01 Apr 2010 *) Change: now the charset filter runs before the SSI filter. *) Feature: the…
rentzsch
  • 385
  • 1
  • 3
  • 6
23
votes
3 answers

Putting RSA keys into azure key vault

How can I store my key pair (typically the id_rsa and id_rsa.pub) in azure key vault. I want to put the public key in my GIT service and allow a virtual machine to download the private key from Azure key vault -> So that it can access GIT…
MercilessMaverick
  • 397
  • 1
  • 2
  • 7
23
votes
12 answers

Setting Up Git Repository on Remote Windows Server?

I have a windows server which I can access locally or remotely over the internet through remote desktop connection, etc. I want to set up a git repository (something similar to "trunk" in subversion), that can contain a series of repositories for…
Goober
  • 361
  • 2
  • 4
  • 6
22
votes
1 answer

Gitlab backup file location (Omnibus installation)

I have installed Gitlab using omnibus installation package. I took a backup using below command sudo gitlab-rake gitlab:backup:create Backup was successfully created. But I am not sure where to find the backup file. Where are all the Gitlab backups…
shashwat
  • 333
  • 1
  • 2
  • 9
21
votes
6 answers

Putting a whole linux server under source control (git)

I am thinking about putting my whole linux server under version control using git. The reason behind it being that that might be the easiest way to detect malicious modifications/rootkits. All I would naively think is necessary to check the…
Tobias Hertkorn
  • 359
  • 5
  • 12
20
votes
3 answers

Git clone/pull across local network

I'm trying to clone/pull a repository in another PC using Ubuntu Quantal. I have done this on Windows before but I don't know what is the problem on ubuntu. I tried these: git clone file:////pc-name/repo/repository.git git clone…
20
votes
2 answers

Use git commands with another path rather than the actual working dir

When using git add . uses the actual path where you're (incase is a git repo). How would I do for using git add, git commit and git push' outside of the working dir? Likegit add /Users/zad0xsis/my-git-repo`. Can this be achieved?
pmerino
  • 461
  • 2
  • 5
  • 11
20
votes
5 answers

What does "master" mean in "git push origin master"

I'm new to git as a version control system. I tried reading the documentation, but I don't understand what "master" means in this command: git push origin master Can someone explain in very dumbed-down terms?
John
  • 7,343
  • 23
  • 63
  • 87
19
votes
5 answers

Using GIT variables in a declarative Jenkins pipeline

I'm struggling to access GIT variables in my Jenkins pipeline I need to know what GIT branch it's been checked out inside some bash code in a stage of the pipeline. I will use this to create different output file names. My pipeline is declarative,…
ColOfAbRiX
  • 1,080
  • 2
  • 12
  • 23
19
votes
3 answers

How to setup Gitlab with post-receive hook?

I am using Gitlab on one server and would like to push my git repository on commit of the master branch to another webserver. So when I push a new version of the website the production server gets updated. I know this should be possible with hooks…
tvb
  • 341
  • 1
  • 2
  • 8
1
2
3
75 76