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
6 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
21 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 ...
0
votes
0answers
19 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
7 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> ...
1
vote
2answers
4k views

Git: Command not found Windows

I have downloaded and installed GIT from http://git-scm.com/download/win For some reason, in Cygwin and in Command prompt (Windows 8), the git command is not found. I selected the option for ...
0
votes
0answers
10 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 ...
1
vote
0answers
125 views

hash-based asyncronous directory comparison

I am trying to efficiently synchronize two large directories via VPN over a long distance. Unfortunately I cannot install advanced tools like git or rsync on the remote server due to company ...
4
votes
1answer
7k views

How can I merge two branches without losing any files?

I have two branches with the following files in there: branch a: file_a file_b file_c branch b: file_a file_d file_e I want to merge them, so that I get both files from a and b (and files that ...
1
vote
2answers
3k 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 ...
1
vote
2answers
2k 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
votes
1answer
26 views

Best deployment method for IIS [on hold]

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 ...
1
vote
1answer
414 views

Permission errors in setting up Git

Background I have a Linode VPS (Ubuntu 12.04 server), and I want to use Git to manage my files from the VPS to my local Windows desktop. I have installed Git Bash and have been using that on the ...
3
votes
4answers
2k views

Setting up SSH/Git on Cygwin yields “Bad permissions on ~/.ssh/config”

I'm attempting to setup Git with OpenSSH under Cygwin. I almost got everything setup. I have the agent and public key and all that.. but now I get this really weird error: $ git pull -u origin master ...
38
votes
5answers
44k views

How to reset master to origin/master?

Can I do following in a simpler way? git checkout origin/master git branch -D master git branch master git checkout master
0
votes
0answers
11 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
21 views

How can I create pushable remote Mercurial repos that works over SSH?

I have been using git for a while and I use git and ssh. I have couple bare repos on my server which I use to pull and push on multiple computers. Now I want to try Mercurial for some of my projects ...
0
votes
1answer
12 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 ...
1
vote
1answer
8 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
6 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
11 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 ...
0
votes
0answers
12 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
23 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
17 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
8 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
9 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 ...
1
vote
0answers
19 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
4 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 ...
2
votes
2answers
307 views

git tag with gpg-agent and pinentry-curses

When using gpg-agent with git tag -u, I'm getting the following error immediately: gpg: cancelled by user gpg: skipped "my@email.com": bad passphrase gpg: signing failed: bad passphrase error: gpg ...
11
votes
2answers
3k views

How can I Resync a fork from original

I just forked a project in Github. I made modifications and sent a pull request. The owner merged my fork with the main project and after that he made some modifications. So for now my fork is not ...
0
votes
0answers
10 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 ...
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
1answer
16 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
25 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 ...
3
votes
4answers
991 views

Cygwin git pull not a command

All of a sudden git pull stopped working on cygwin. It gives me this recursive error message. git: 'pull' is not a git command. See 'git --help'. Did you mean this? pull I can do a git ...
6
votes
3answers
3k views

checking out a portion of a git repository

How can I check out just a portion of a Git repository? I have a repository that has several modules, and I only want one of the modules installed on a particular site. In Subversion, I'd do svn ...
0
votes
2answers
14 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?
5
votes
2answers
849 views

Remove all “deleted” files in Git

Is there a better solution for removing manually-removed files from the Git repository than my current error-prone command? git status | grep deleted: | cut -d: -f2 | xargs git rm
23
votes
3answers
6k views

Tmux and ZSH custom prompt : bug with window name

I have customized my ZSH prompt with oh-my-zsh to make it more readable and add information about git if I'm in a repository. Example : bob@inf [~/docs] % bob@inf [~/src/nicest] master % (in a git ...
0
votes
0answers
44 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
2k 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: ...
0
votes
0answers
17 views

Restore Gerrit project from local copy of git repo

What should I do to restore Gerrit project from local copy of Git repo? Suppose situation when bare git repo on master server was deleted and only local copy persisted. From local copy all references ...
1
vote
1answer
14 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 ...
0
votes
2answers
2k views

How can I revert back to a Git commit?

I just started using Git on Windows and I have a small question. When I say git commit along with a message I realize that git commits the file. But where exactly does it store the commited file? ...
3
votes
4answers
1k views

How to properly store dotfiles in a centralized git repository

I'd like to put all my dotfiles (like .profile, .gitconfig, etc.) in a central git repository, so I can more easily keep track of the changes. I did this, but I would like to know how to properly ...
1
vote
0answers
18 views

why my file permission being changed after pull from git repository

I have been came across this problem over and over again. I have a git repository set up on my remote server and all the files are set to 644 and folders are set to 755. However, every time after i ...
0
votes
1answer
21 views

Git post-update hook not working properly

If I push to my remote origin repository the post-receive hook should push all to another remote repository on another machine. When I push to my origin the post-receive hook gets triggered but I ...
0
votes
1answer
11 views

How to create SSH Key for git user

If i want to syncronize my remote origin with another remote repository i will have to register a post-update hook. But I will need an ssh key for that. Because my origin repo is owned by git user, ...
0
votes
0answers
27 views

Setting up a git post-update hook

I am using the newest gitlab version on ubuntu server 14.04. There are 2 repositories that should stay in sync. (One on my local Ubuntu Server VM and one on an external Server) If I push my local ...
0
votes
1answer
16 views

Git user protocols

According to git-push man page: Git supports ssh, git, http, and https protocols (in addition, ftp, and ftps can be used for fetching and rsync can be used for fetching and pushing, but these are ...
5
votes
1answer
2k views

How can I share a git stash?

Is there a way to share a stash in git? I work on a number of machines, and often want to be able to move my current working state from one to another. I'm looking for a way that I can push/pull a ...