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
2answers
2k views

How to clone Git repo on my local server

I'm trying to use Git for the first time (I have used Mercurial before so I know the basic setup). Everything is ready on the server side with the following properties: User name: git Domain: ...
0
votes
0answers
16 views

Git Permission Denied (Public Key)

I cannot fetch or pull. $ ssh -vT git@github.com debug1: Authentications that can continue: publickey debug1: Offering RSA public key: usersnewkey debug1: Authentications that can ...
1
vote
1answer
26 views

My computer can't find the git command

I recently installed git on my computer (OSX 10.10.1) and when I run git I get git: error: unable to find utility "git", not a developer tool or in PATH. So I checked, found that I didn't have the ...
0
votes
2answers
11 views

Run git command from an external directory in fish function

In a fish function, can I run a command from a certain directory without changing into it? or Can I run a git command (push) from outside the repository by specifying its path somehow? I'd like ...
-5
votes
1answer
34 views

GitHub: typical repository sizes? [closed]

What are the typical repository sizes on GitHub? My project repository grew to 17MB already and all I have is initial design documentation over 80 commits. It makes me think how big it will get over ...
1
vote
3answers
24 views

Copy ssh key onto another machine so I can use GitHub there?

I have a remote server. I can already ssh successfully onto that remote server - my key is in authorized_keys on the remote server. Now I want to pull from GitHub directly onto that remote server. ...
0
votes
0answers
12 views

How to setup an automatic git commit?

I have a git repository on my hard drive. At a predefined time, such as 11:59 PM every day, I want an automated commit to be made with the current state of the repository (all modified files checked, ...
0
votes
2answers
544 views

Git in Visual Studio 2013 stops working abruptly

Yesterday, I went home with Git working perfectly well inside Visual Studio 2013. I could 'Compare with unmodified' for a source file, I would see the version control status of my source files, and ...
0
votes
0answers
15 views

bash completion in msysgit by single or double tab

Single tab used to make bash complete current line, and double tab shown all possible variants. For example, if I have files (or git branches, or whatever is suitable in current context) "abc", "abd" ...
13
votes
2answers
2k views

How to reuse/extend etckeeper's metadata engine for git control of non-/etc filesystems, or extend git natively with said capability?

Overview + question I want etckeeper-like filesystem metadata control for non-/etc, git-controlled directories. Home and web-app directories, among others, are classically sensitive to metadata ...
0
votes
0answers
11 views

Issues with git on Hyper-V Vagrant box

I am running Ubuntu 12.04 on a Hyper-V box with Vagrant on Windows 8.1. I can git clone all of my smaller repositories from BitBucket and Github, but I have a repository that is decent sized (>10MB) ...
0
votes
1answer
11 views

Website updating from git (over ssh)

I have a script that I run over SSH, which updates my website from a Git repo. cd website-git git checkout master git pull # Update protected directory rsync -v -a --delete --exclude=db ...
3
votes
1answer
3k views

How do I pull big repos from git on windows without getting “Out of memory”?

I am using the Git Gui provided with the git client fromt he git website. The cygwin version has the same problem. error: git upload-pack: git-pack-objects died with error. fatal: git upload-pack: ...
1
vote
1answer
14 views

Git alias does not find the path I supplied

I'm trying set up a git alias because I type this command often: git commit -m 'update' -- hdf5_classification/output To make the alias I am doing: git config alias.up '! git commit -m 'update' -- ...
0
votes
1answer
30 views

GitHub for Windows: commit size

When committing in GitHub for Windows, is there any way to see the total size of the files that are being committed? I am aware that we can see the repository size on the GitHub website.
0
votes
0answers
4 views

A lot of commits missing the SmartGit log

I'm using SmartGit on Windows to commit/push to a linux server, where I get the content using the commands git fetch and git reset --hard origin/master. Occasionally, I will add/commit/push some ...
1
vote
2answers
34 views

SSH-AGENT could not open connection

I try to link my SSH key with SSH Agent. I'm on Windows 7 Pro, and I'm using Git Bash console. I've this folder structure: C:\Users\MyName.ssh\id_rsa Where I've put my SSH key files as follow: ...
0
votes
0answers
12 views

posh-git not reading my profile

I'm using posh-git (part of Github for Windows). I want to set a custom prompt as in this question. However, posh-git is not reading my profile file. I have tried: Running PowerShell as ...
0
votes
0answers
10 views

Pull and chown from git

I've made a little script that fetches data from my bitbucket.org repository. Now when content gets created or changed the owner changes to name:name. What I want is all files to be chown to ...
0
votes
0answers
16 views

Can't connect IntelliJ to GitLab Cloud on Windows with SSH

I have been struggling to work out how to connect IntelliJ to my gitlab cloud repository using SSH on Windows. I'm new to all this, I'd very much appreciate someone checking the steps I've done so ...
0
votes
2answers
19 views

apt-get error when installing git

I just set up a fresh Ubuntu 12.04.5 server amd64 machine on VirtualBox 4.2 (I was having install issues on OSX 10.10 using 4.3) and I'm able to do apt-get install curl but when I run apt-get install ...
2
votes
1answer
313 views

Installed Mysgit for windows and Git bash is returning dev/null

I did an standard installation of git for windows. However when I opened git gui these what I've seen in my screen and as for git bash. Welcome to Git (version 1.9.4-preview20140815) Run 'git ...
0
votes
0answers
10 views

atomic `git push`: don't push tag if branch push fails

I'd like to solve davidchambers/xyz#18. Assuming I have a tagged commit which I'd like to push to a remote repository, this usually works: git push "$repo" "refs/heads/$branch" "refs/tags/$tag" A ...
0
votes
0answers
31 views

How to encrypt data in bitbucket without losing git diff tools?

Based on this question:encrypt files before sending them to cloud. considering openssl: For example when using openssl we can write the files fooenc.sh: #!/bin/sh openssl enc -bf -nopad -pass ...
3
votes
0answers
34 views

How to filter commits by author in SourceTree?

In the branch view of SourceTree, I see all the commits. I'd like to filter the commits to show only the ones committed by me/someone. How can I do this? Thanks.
1
vote
2answers
3k views

How to auto commit to my git repository using cron?

I look into a lot of answers about this subject, but something is wrong here, let me explain. I create this script, to make my cron cleaner :) #!/bin/bash cd ...
1
vote
0answers
23 views

How to store confidential info whilst using dot files framework

I'm trying to come up with a strategy to store my dotfiles in Git. So far, I've create a dotfiles repo on GitHub and I've thrown together an install script which simply clones the repo, then symlinks ...
1
vote
2answers
967 views

Git pull/fetch doesn't seem to work

I am using git over hamachi vpn and am able to clone the remote repository. However, git pull/fetch fails after hanging for a long time. The error message displayed is: Write failed: Broken pipe ...
0
votes
2answers
2k views

How do I add as editor Dreamweaver to work in GIT?

How do I add Dreamweaver as the editor in Git? git config --global core.editor??? $ slime README.md sh.exe": slime: command not found
0
votes
1answer
20 views

“Git commit” takes a very long time (> 40 seconds) to open vim. What could be happening?

When I run git commit -m 'some commit message', everything works as expected. When I run vim on its own, everything works as expected. Yet when I run git commit, which launches vim, it takes up to 40 ...
0
votes
0answers
9 views

How to undo a mistaken merge using TortoiseGit

I have a TortoiseGit repository locally, which is also pushed to a remote. There are 2 branches - master (the production version), and CodeFirst (a development branch). Today I fixed a minor bug in ...
4
votes
1answer
45 views

Remove file from git version control without deleting it from the filesystem

How can I remove a file from the git tree without deleting it? It is easy to git add an untracked file to include it by the next commit, however I do not find out how to to remove the file to have ...
0
votes
0answers
11 views

npm install not working since update to mavericks

So I updated to Mavericks and had to reinstall node. i cloned a repo from github that has some private dependencies: devDependencies: { "something": ...
2
votes
2answers
4k views

Setting up git, path errors when pushing/cloning from local to NAS

I'm setting up a NAS server with Git for the first time, so please forgive the noobish questions (it also means I am super thankful for any detailed explanations you can give me, because I am kind of ...
2
votes
1answer
2k views

Can't clone from Bitbucket - Get stuck at “Cloning into…”

Maybe you can help me out. I have a server which I'm accessing thru a SSH tunnel. On this server, I want to clone a git repo from bitbucket, but bitbucket uses Port 22 as well, I assume. So how can I ...
0
votes
2answers
2k views

How to Compile and Install Remmina From GIT Repository for Ubuntu (KDE)?

Gentlemen, I would like to compile a version of Remmina directly from the GIT repository, because I need to apply a patch to fix a problem. With the command sequence below I can compile it and ...
4
votes
3answers
4k views

How to git clone private repos within Vagrant VM, using host's SSH keys?

I'm able to use PuppetLabs vcsrepo to clone public git repos, but I'd like to also be able to clone private repos, using the host's SSH keys. What would the configuration look like for Vagrantfile ...
0
votes
1answer
17 views

Attempt to gitolite mirror says “you should pull first”

Some of the repositories we mirror using gitolite are now erroring with: % gitolite mirror push mirror-host repo/path remote: error: denying non-fast-forward refs/heads/feature/FOO-XXX-bar (you ...
0
votes
0answers
12 views

What is a good fix to have 10 key work correctly with Git?

I have an Apple Macbook Pro V. 10.10.2 (14C1514) with an apple keyboard (with 10 key) I am also running Git with Zshell. When I am using git, the 10 key on my keyboard is not working. However, when ...
7
votes
1answer
802 views

Hosting a Git Annex on a server without git-annex installed

Machines A and B host a common git annex repository. They both have the git-annex program installed and I manually edit/commit/etc stuff on both machines. A & B are not connected to the internet ...
5
votes
2answers
1k views

How to use git annex on an existing repository?

What is the best way to import all big files (or all binary files) into git annex, when they are already in a git repository? I don't want to lose all of my commits, so I think it's not a good idea ...
2
votes
2answers
422 views

Have git-annex control files on a partition but still use the partition the normal way?

I want to have all my files on a partition to be controlled by git-annex to be able to take them with me to other computers via an externel drive. Still I want to use the partition normally (creating, ...
6
votes
1answer
717 views

Is git-annex appropriate for my scenario?

I have a git repository with source codes I want to put in the open on github. However, I also have gigabytes of data that I don't want to have in the open and in the repo - they are big, they are ...
1
vote
1answer
343 views

Multiple git-annex repos on one drive

I think that this is possible with git-annex as it exists right now, but I'm just looking to make sure. Right now I have a file tree that looks something like this: + knowledge + media + ... And ...
3
votes
1answer
124 views

Moving two existing already-synced directory trees to git annex

I have two copies of my music files, one on a desktop Linux machine, one on a Macbook. At the moment, I run rsync periodically to keep these files in sync. I'd like to move management of this problem ...
0
votes
0answers
8 views

How to find Git commits that share the same tree contents?

I guess I could do a tree-filter and compute it myself, but is there a quicker, native way to find commits that contain the same tree state (same files and file contents)? They are not adjacent so ...
0
votes
2answers
23 views

GitHub Mac OS application is launched but its application window is hidden

I just installed GitHub Mac OS application. I do some work with that, closed it and then open it again. After that the application opens but apparently the application window is hidden. I can work ...
0
votes
0answers
17 views

Mac terminal lost git knowledge

When I opened terminal and went to a git repo, it would automatically show the branch I'm on with a big green check or red X if I had any changes. Logged onto machine today and my bash profile was ...
0
votes
1answer
14 views

How can I make git understand the shortest unique abbreviation for a command?

How can I configure git to recognise the shortest unique prefix of a command, like git does with SHA hashes, or like mercurial does? e.g. git ad should be recognised as git add, or git conf as git ...
0
votes
1answer
21 views

Adding all files listed as to commit in the gitignore file at once in GitHub for Windows

When committing in GitHub for Windows, is there any way to add all files listed as to commit in the .gitignore file at once?