Git is an open source distributed version control system originally designed and written by Linus Torvalds. It is generally used to keep track of source code for software projects. As a DVCS, Git provides powerful help with branching, merging, and distributed development.

learn more… | top users | synonyms

1
vote
0answers
61 views

Jenkins - ssh credentials and editing credentials issues

Can't connect to bitbucket through ssh in Jenkins I can get it to work using https and providing my bitbucket account password, butI can't get it to work using an ssh key and ssh passphrase. I have ...
0
votes
0answers
7 views

Bash autocompletion for git checkout when file is missing

Let's say you have a git directory with: foo/bar.txt foo/qux.txt and you rm foo/bar.txt. Is there any way to get bash+git to autocomplete when you type git checkout -- foo/b<TAB>?
0
votes
0answers
34 views

How to configure development environment

I am looking for feedback on setting up and configuring my development environement. Below is my current hardware and software: My local hardware and software: PC laptop Eclipse IDE (Plugins listed ...
0
votes
1answer
56 views

git commit hash in zsh prompt

I'd like to see the current commit hash (just the first 8 or so characters) in my zsh prompt. I have this so far: https://github.com/calebmeyer/cpm-zsh-theme/blob/master/cpm.zsh-theme#L3 ...
0
votes
1answer
50 views

It it possible to corrupt external HDDs by cloning big git repositories?

I bought a Seagate Expansion 5TB external hard drive and I started cloning the git repositories I contributed to. There is a big git repository (~16GB, 1GB is just the .git directory): after cloning ...
0
votes
0answers
21 views

Git/GitHub - Organizing Different Server and Client Repositories for the Same Project

I would like to know if there is a better way to organize multiple repositories for the same project. For example, if there are repositories for an iOS client, web client, and API server, should be ...
0
votes
0answers
15 views

my git details & connecting via eclipse

I installed git on a CentOS machine. I initiated the git on the server on /var/git/.git/. My question is: how do I connect to the git via eclipse and adding files, and what should be my connection ...
0
votes
0answers
129 views

jenkins server hosted on local machine - interfacing with bitbucket issues

I have been unable to get bitbucket webhooks to trigger a build, or for that matter, to get a build to successfully connect to my remote bitbucket repositories. When I set the git path under global ...
0
votes
0answers
31 views

Symantec cloud antivirus now blocks Git, SSH, Cygwin

I run Symantec Cloud Antivirus on Windows. Recently, after an upgrade, it started blocking SSH, Git, Cygwin. In particular, it deletes git, says it fails a SONAR Heuristic, and doesn't seem to give ...
0
votes
0answers
115 views

Proxy refuses the CONNECT method

I am trying to git clone from my work. The squid proxy is very restrictive and only accept HTTP(s) queries using a particular user-agent. This can be tricked with git using the http/user-agent config....
1
vote
1answer
16 views

git sparseCheckout repo pushes full repo to remote

I found a git repo that has something I need, but only part of it. So I pulled its content with sparseCheckout=true and set the sparse-checkout file. After pull, the local repo looks good. But when I ...
1
vote
1answer
81 views

SSH to github using CygWin doesn't work

I followed this article on github on how to generate ssh key but it keeps asking for a passphrase, but I haven't set up one! Even if I set up a passphrase it ignores it and asks for it again. It ...
0
votes
2answers
57 views

Git ignore patterns: ignore a specific directory

I have a git repository, with ignored paths specified in .git/info/exclude as they are specific to this clone. I wish to exclude a directory /foo (and everything below it) which is located at the ...
0
votes
0answers
21 views

git hub for version control for an entire directory

Code at bottom I am using a private repo on git hub as a version control between me and partner and I am having some difficulties in my approach. I have wrote a few bash scripts as a way of ...
1
vote
1answer
22 views

Bash alias/function to precede every “git diff” with “clear”

Every time I do git diff I'd like my bash to do clear & git diff instead. I tried to tweak an answer at "Bash: Spaces in alias name" like this: git() { if [[ $@ == "diff" ]]; then ...
0
votes
0answers
22 views

Error Git authentication in WebStorm

In WebStorm window for entering the password appears when you try to make a Push and Pull from Git: Once I enter the correct password - you receive an authorization error message. I use Putty Key. ...
2
votes
0answers
194 views

Visual Studio Code Git Issue

I'm running version 0.10.8 of Visual Studio Code in Xubuntu 14.04 x64, but used 0.8.4 before and didn't have this issue When I try to push a commit to Bitbucket via VSCode, I get the following ...
0
votes
1answer
87 views

How do I set up rsync in my environment (windows client to apache server with Wordpress installation)

I read the word rsync for the first time today after looking here on sueperuser for a solution to only transfer files which have been changed. I am working on a website with this environment: ...
1
vote
2answers
67 views

Is it a good idea to use git for configuration file version controlling?

I use Gentoo Linux and it has rather complex configuration. My question is it wise to use git for version controlling my config files? I have some git repos in my home, my guess if I put /home/** to ...
0
votes
0answers
33 views

Is it possible to create a git repository in home network for cross platform?

At home I have a Mac Mini that handels backups and works as NAS. Normal Mac users can connect to the server to upload & download files or stream media from it using plex. Right now I have a ...
0
votes
1answer
35 views

How can I upgrade Git via Chocolatey from within Git For Windows?

I use Chocolatey to manage as many Windows applications as I can, including Git. I use Git For Windows (git-cmd.exe) as my default command prompt. But this means that if I do a choco upgrade all -y ...
0
votes
0answers
20 views

Deploy Git repository on remote server

I have Bitbucket set up, and files go from development environment to Bitbucket just fine. I cannot figure out, after many hours and a lot of different information I have found, but I cannot figure ...
0
votes
2answers
50 views

As an unprivileged user, how can I configure sshd to allow only specified commands to be executed when it's autheticated with a password?

I usually log in to a SSH server (where I'm an unprivileged user) by using my public keys. I also use authentication by a password when I use the server as a git-annex repository. What I want to do ...
0
votes
0answers
11 views

adduser with custom conf file: enable all users in group to read, write and execute

I am trying to enable apache to create new users for git groups, repositories and ssh access. I've managed to get apache to add users, but now apache cannot move, read and write in the home dirs of ...
0
votes
1answer
53 views

How to link a card (tracker Kanban Task) to a git commit?

I wanted to know if there is a possibility to link a commit to a card (tracker Kanban Task). Because I wanted to retrieve the commit which resolved the bug.
0
votes
1answer
22 views

Basic setup guidance needed

I set a CentOS to run our company website using Apache. Apache runs as user apache. Now, to update our website code using git, I set a user say sumit, and create a shell script that does git pull (I ...
0
votes
0answers
13 views

ignored files are deleted

I have a live server where i have some config files that i have deleted in my master branch and added to .gitignore. When i now pull from master to live server all config files get deleted. Is there a ...
0
votes
1answer
53 views

Bonobo git server: How to do an incremental backup of all repos

We have Bonobo git server running on Windows server and have to copy all repos to another Windows server, so we can restore Bonobo git server even after our office has been burnt to the ground. We ...
3
votes
0answers
186 views

Migrating a git repo to AWS CodeCommit

I've followed the steps here and here. When I run the below commands I get: git config --global --edit displays an edit file containing the lines in the setup guide aws configure shows the tail end ...
4
votes
1answer
103 views

How can I cache Yubikey/U2F credentials when authenticating over SSH (specifically Git)?

I've set up my GitHub account to use U2F using Yubikey (all over SSH) but as I also use a Git bash prompt, so every time I use my terminal, I'm prompted to touch my security key. I don't quite ...
0
votes
1answer
80 views

windows ssh doesn't accept passphrase

I've installed git-for-windows and generated a ssh key with PuTTYgen (with passphrase) and stored it in c:/users/username/.ssh/id_rsa. If I try to log in with putty and enter my passphrase and it ...
0
votes
1answer
34 views

Git. How can I add folders and files under version control

I've forked a remote Git repository, so I get it on my PC. I've added two folders and two files but Git doens't recognize commit. I try to launch this command: git commit -m "my message" but my ...
0
votes
0answers
48 views

Parallels VMWare Fusion git repo on host machine slow performance

I started evaluating Parallels and VMWare Fusion to be able to use Visual Studio from my mac. I discovered, however, that both use network shares as a way to share files between Host and Guest OS. I ...
0
votes
0answers
67 views

Will adding SSD to NAS significantly improve Git performance?

I run a QNAP TS-470 Pro with three out of four HD slots equipped with WD Red SATA 6Gb/s 4TB drives. They are in RAID 5. On there, I have a Web volume running Apache. I use this as a development ...
0
votes
0answers
46 views

Downgrade git on Ubuntu 14.04

I want to downgrade git to 2.6.5 with apt-get after accidentally upgrading to 2.7.0. How is it done?
1
vote
0answers
39 views

Make gitk with path argument show all files

I am running gitk with a path argument to only show commits that touch a particular file: gitk -- path/to/file However within these commits, in the "patch" view, gitk only shows the changes to the ...
0
votes
1answer
54 views

How to emulate a private IP address for local Apache webserver?

I am working on two seperate computers (office PC and home laptop) on the same project. It's a WordPress website. I use Git and Bitbucket for version control and remote branching. On both machines, I'...
0
votes
0answers
61 views

How to clone repository on Git for Windows — fatal: repository does not exist

I am using Git for Widows, but I can't clone a repository. Am I typing it wrong? This is how I would do it in Linux. Why is it called '' ? J@JDM MINGW64 ~/Documents $ git clone "https://github....
0
votes
0answers
32 views

How can I get latest changes in my Git branch without it appearing like I'm the one committing those changes and still keeping my pull request clean?

In Git, we have a develop branch from which we make feature branches for each feature. I see two ways of merging the latest changes in develop with my feature branch code. Merge the latest develop ...
0
votes
0answers
20 views

Better way to unexclude single folder in .gitignore

I have several files in my home directory under version control. My .gitignore looks like this: #gitignore * !.vimrc !*/ !.vim/* !.gitignore !.xinitrc !.bashrc to include .vim/* I had to include *...
0
votes
1answer
126 views

Is using Git to revision KeePass database file possible?

I'm wondering if it is possible, or indeed a good/bad idea to use Git (or Mercurial) to revision the KeePass database file and share it between my co-workers, for centralized (but distributed) ...
1
vote
1answer
19 views

Start Git-Flow repo from project dir or home dir?

I am using Git Flow and it is not clear from the documents whether I call 'git flow init' from my project root or from my home directory?
0
votes
0answers
204 views

How to configure cygwin git to work behind proxy?

I am using Windows 7 x64. I have installed Git for Windows and cygwin's git. These are the installed versions for Git for Windows: user@machine MINGW64 ~ $ uname -a MINGW64_NT-6.1 machine 2.4.0(0....
0
votes
1answer
133 views

GIT warning: unsupported ssl version tlsv1.2: using default

I am trying to clone a git repository and receiving the following warning and error message: Cloning into 'projectname'... warning: unsupported ssl version tlsv1.2: using default * Couldn't find host ...
0
votes
0answers
34 views

Fail push github with jenkins

I'm struggling to push a commit to my github repository. I just made a fresh new configuration of jenkins in my machine, configured it to download the src of the project from a git server, and now ...
0
votes
0answers
11 views

Make git merge act on paragraphs/blocks instead of lines?

I am using git to manage a "configuration file" consisting of a number of blank-line-delimited configuration blocks of the standard sort like [one] alpha=1 beta=2 Most changes to this file consist ...
0
votes
1answer
23 views

linux/fedora ssh permissions through vpn ssh session

I'm not sure if I've worded the title correctly here but feel free to suggest/edit upon reading my question... So basically, the company that I work for have their own local git repository which ...
0
votes
0answers
30 views

A good guide to keep server configs in GIT and using Ansible

Here the situation: I have multiple server in different environnements:DEV, STAGING, PROD, etc.. Some of the, I want to save all the /etc/*.conf or /etc/httpd/.... * files and so on... As well, I ...
0
votes
0answers
36 views

Which Users SSH key should I put in Owner's SSH Key - Git Plugin in Tuleap?

I have installed Tuleap and I would like to connect it to my GitLab server. I am using the Git plugin provided by Tuleap but I am not sure how to fill in the boxes. There is a section called Owner's ...
-1
votes
1answer
28 views

How to create a “function” for terminal to run

I have about 10 terminal commands that execute syncing with a Git repository and a live-server. How can I boil that down into single command? Is this a use case for scripting? Steps include: ...