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

0
votes
0answers
190 views

bash: git-receive-pack: command not found

I've just changed the git remote for my server, and now when I try to use git push web master, (after staging and committing the changes), I get this: bash: git-receive-pack: command not found fatal: ...
2
votes
1answer
134 views

Google Drive with a .gitignore like option

With git and hg, etc, you can define .gitignore file that will prevent certain folders/filetypes from being saved to the repo. Is there anything of that nature for Google Drive? In the preferences, ...
2
votes
2answers
387 views

what is `ssh-agent bin/bash` and why I have to `ssh-add` everytime

I have to run the following commands each time I restart: ssh-agent /bin/bash ssh-add ~/.ssh/key_rsa First question is why is /bin/bash necessary and what it is used for? Second, Is it ok I run ...
2
votes
1answer
572 views

Error while installing Perl package Term::ReadKey in Cygwin

I'm trying to use git via cygwin Well, I used this command to clone the svn content to a local git repository: git svn clone svn://path/to/my/project --username myuser Git was returning: ...
1
vote
1answer
312 views

How to do full version control on OneDrive (with git?)

I'm using OneDrive to store all sorts of files (not just Office files). Unfortunately, versioning isn't supported except for Office files. I'd like to do this manually, with git or svn or anything ...
5
votes
1answer
325 views

How to store git repos of abandoned projects?

I have over 200 projects on my workstation, every one is a git repository. Most of them are superseded or otherwise abandoned. I still keep the code in case I ever need anything from them. Currently, ...
0
votes
0answers
50 views

Windows .bat or .sh file to prepare multiple repositories for sourcetree

What I am looking to do is run a script that will: delete folders a,b and c from a directory. re-create the folders a,b and c as a a local git repository (using their individual git source urls) ...
0
votes
0answers
25 views

Re-add ssh key every time I restart my mac

Every time I try to interact with git after I restart my machine I and given an error saying I have been denied access. To fix this I enter the command sudo ssh-add -K ~/.ssh/github_rsa This ...
0
votes
0answers
114 views

git commit not working in shared folder under VMware Workstation 10

I'm working in Ruby on Rails under MacOSX 10.9 in VMware Workstation 10. I moved my RoR project folder from the Desktop into my VMware shared folder. The reason is because some character's location ...
0
votes
0answers
46 views

Using the windows certificate store for git SSH

I am currently working on setting up a build environment that will use OpenSSH with certificates as the primary authentication method (Certificates, not public-private keys). The build environment ...
0
votes
1answer
61 views

Github lets me commit as another user

I'm learning how to use Git, and I've noticed that there's no control over the user.name and user.email when commiting. For example, I'm inside my repository. I can change my local config, $ git ...
0
votes
0answers
52 views

Windows right click on git bash menu, report can not find sh

i am able to open Git Bash from the program, but right click on drop down menu 'git bash' it says can not find sh. How can I fix this problem?
0
votes
0answers
12 views

Ratio of size of single version to size of full distributed version controlled archive

I am considering using Git. What I would like to know is, if I am going to download the full distributed version controlled archive to my local machine rather than checking out a single copy as used ...
1
vote
1answer
849 views

How do you stop or prevent gitlab from running on startup?

I've installed gitlab on Ubuntu 14.04, from the following deb file: gitlab_6.9.2-omnibus-1_amd64.deb It works beautifully. But I want to perform some maintenance on the box without gitlab running, ...
1
vote
2answers
887 views

How to configure automatic password handling for git commands:

I have an automatic build script for my build server that builds Android applications. As part of this building process, I need to pull the current sources from the repository to make a release and ...
0
votes
0answers
146 views

Best way to build a home server to share really large files between OS X and Windows?

I'm thinking of getting a local server for our offices - because we are video editors, and having several copies of every single project we're working on is simply ridiculous. It's incredibly ...
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
1answer
130 views

Daily crontab with hg, git and svn

Hello I have made a script that updates some repos from git merc and svn, then updates a git repo. The script works manually but doesn't work in crontab, here is the script: #!/bin/bash cd ...
0
votes
0answers
51 views

git-svn creates directories but doesn't check out content

I am migrating an SVN repository to Git using git-svn combined with some light bash scripts on Ubuntu 14.04. Locally. git-svn has worked fine so far (on Unix), but recently, it sort of gets stuck ...
0
votes
1answer
484 views

Why does sourcetree want my email?

I'm new to version control systems. I've installed the sourcetree system for windows 7 and skipped the registration in bitbucket and other online repositories. When I try to do the first commit, it ...
0
votes
1answer
34 views

When downloaded code from SourceForge does not reflect the latest edits, what could be the issue and how can I solve it?

In the following sourceforge hosted libdc1394 library, Damien Douxchamps correctly added some lines of code to /usb/control.c on 2014-3-6. The latest 2.2.2 package of this library, was modified and ...
0
votes
1answer
40 views

Git bash with Chinese?

I have a few folders with Chinese characters in them. I simply want to cd into them in Git bash, but this is impossible since I can't type Chinese in its terminal. Is there a plug-in of some sort that ...
3
votes
0answers
570 views

Build an Android Rom (Make Error 41) [SOLVED]

I tried to build a custom Rom for Android 4.4.4. I use as base the Liquid Rom (Github Link) Before I build the rom, I had insertes in the local_manifests some apps to add to the ROM and before I did ...
1
vote
1answer
94 views

How to push changes from a live deployment web server back to the git repository

I'm working in an environment where the developers work directly with script and image files on the live deployment web server. This is scary and has caused a few, though so far surprisingly few, ...
0
votes
1answer
12 views

Are all fetched objects from remote are being pushed forward (replicated) to other repos?

I've set-up multiple git remotes as part of one Git repository and I need to cherry-pick one specific commit from the remote, but I don't want to push anything else to other repos (for the privacy ...
0
votes
1answer
97 views

using git pull after ssh in script

I use public and private key to ssh to a remote server without password. After that, I need to perform "git pull" command. But I don't know how to pass the password into it. Trying the following ...
0
votes
0answers
24 views

Server-Side Git Authentication With Database

I've been looking for information on how to create a system similar in functionality to GitHub & Heroku - whereby a user is prompted to login with credentials set in the database. I have ...
1
vote
1answer
46 views

Using a value from a file and updating it using a Linux script:

I have an automatic build script for my build server that builds Android applications. As part of this building process, I need to increment two parameters in one of the Android application files ...
1
vote
0answers
129 views

Windows Null not Working Correctly

GitHub for Windows is not working correctly, citing a /dev/null error. I have since discovered that Windows' null.sys and Null device may have something to do with it, as running dir > nul returns ...
0
votes
0answers
32 views

Git: change head to point to remote branch

I recently cloned a teammate's repo. His is cloned from a master remote repo when i run git branch -a now i have : *master remotes/origin/HEAD -> origin/<dude's username> ...
0
votes
0answers
18 views

Copy (not clone) git repo and checkout different branch

I'm trying to set up dev and staging sites from a production site using git. The problem is that I just discovered a lot of vendor/other code is ignored by the repo (which I inherited) but is ...
0
votes
1answer
170 views

Best deployment method for IIS [closed]

i have a dedicated server running windows server 2012, and i'm not very familiar whit iis, and i want to get a way to have my web site on a git repository and make deployment to the iss server, but i ...
0
votes
0answers
271 views

Can I force 'git checkout' to compare to the remote branch by default?

I started working on a repo on Machine A, and pushed everything to github. Then I cloned it on Machine B, worked on it some more, and pushed everything to github. Just now I went back to Machine A, ...
0
votes
1answer
123 views

Git: Put an existing repository on a shared server

I've tried to follow the instructions from the official git documentation to put an existing repository on a shared server. But when I try to clone the repository on the server I get an error. Can ...
0
votes
0answers
39 views

Gitignore vs BTS SyncIgnore

I'm currently trying out BTS (Bit-Torrent Sync). I've been using Synology Cloudstation, but I'm unhappy with the lack of "exclusion" options and some other quirks that just leave me not One thing I ...
0
votes
0answers
28 views

An issue with git diff command

What could be causing this error on Mac OS X (mavericks)? I have git installed with homebrew ➜ whereis git /usr/bin/git ➜ which git /usr/local/bin/git ➜ git --version git version 2.0.4 Now when I ...
1
vote
1answer
79 views

git ssh store password

I am using GIT via SSH using password-based auth (publickey is not supported due to server-side encryption that uses user password as encryption key). Is it possible to store the password locally ...
0
votes
0answers
155 views

Getting Tortoise Git to work with Bonobo Win Server installation

I've installed Bonobo on our Windows 2012 Essentials server and set up a repository. I'm now trying to access that repository using TortoiseGit but I can't figure out how to sync up with the server. ...
0
votes
1answer
205 views

ssh login with key can't connect although go an ssh key

I have my 2 servers that I want to connect one to another with ssh. I am the user --> userA in serverA, and I have this config file in .ssh folder Host git HostName git.OURSITE.com ...
0
votes
0answers
31 views

ssh key works on terminal but not on git

I have my machine, with it's ssh key. the public key is on the git remote machine. I can easily connect to the Git machine with simple ssh threw terminal. The problem is when I perform a "git pull" ...
0
votes
0answers
14 views

git svn “unable to chdir up to '.'”

I use a local git with a SVN remote server, everything works fine but after my last reboot I get the following error with everything related to git svn. unable to chdir up to '.'
0
votes
0answers
45 views

git credential command not working

When I ran git credential command, I get following error: git: 'credential' is not a git command. I correctly configured credential helper with the command git config --global credential.helper ...
3
votes
1answer
97 views

update git after upgrade to Mavericks

I've recently upgraded from Mac 10.6.8 (Snow Leopard) to 10.9.4 (Mavericks). I had git 1.8.5.2 installed on the old system and want to update it now to the latest version. So I uninstalled git with ...
0
votes
0answers
9 views

tig: increase view width

Is there a way to increase the width of a view? For example in status view if I select a file it splits the screen so that the status view is on the left and the stage view is on the right. I want to ...
0
votes
0answers
29 views

Apply changes in ~/.gitconfig

When I make changes in my ~/.gitconfig file I find they are only reflected if I restart my computer. Is there a command to "refresh" git so that the changes in the ~/.gitconfig file are reflected ...
0
votes
0answers
31 views

How to clean up output from `watch git gc`?

git gc updates the output as it runs, perhaps using backspaces, control characters, and/or curses. (I'm not an expert on this.) How can I modify my watch -n 60 git gc bash command so that the output ...
0
votes
0answers
172 views

Git for Windows has stopped working

git.exe crashes. It started happening after installing SourceTree, and now I cannot revert it to a working state, no matter what version I install - whether it is the git from http://git-scm.com/ or ...
0
votes
2answers
15 views

How can I reset some of the committed modified files in git?

I modified some code files and git add git commit. And then, I found some of the modifications were wrong. So how can I reset them in git?
1
vote
2answers
327 views

Various methods of trying to set up a git diff tool lead to “fatal: cannot exec […] : Bad address”

I'm on Linux Mint 17 64-bit. Just purged git and re-installed with apt. Deleted ~/.gitconfig. Only configuration I do after supposedly fresh install is (while inside a repo) git config diff.tool ...
1
vote
1answer
26 views

Is it possible to use git without git author settings?

I am using SVN but I would like to change to Git for a lot of reasons. However the thing that annoys me is that git is constantly bugging me about settings my author email and name. I work on a lot ...