git

How to use git to download a particular tag?

I'm trying to figure out how do download a particular tag of a git repository - it's one version behind the current version. I saw there was a tag for the previous version on the git web page, with object name of something long hex number. But the version name is "Tagged release 1.1.5" according the site. I tried a command like this ...

How can DVCS help scientific programming?

I'm doing some preliminary work in investigating how DVCS (the likes of Git, Hg, Bazar) can help in the process of scientific programming, especially for graduate students. I think I'm in quite a good position for this since I've been programming for quite a few years and is currently starting a Masters program in a natural science. The ...

'receive-pack': service not enabled for './.git'

(Solved already, I'm writing this for the next guy) I was running git daemon on one computer and tried synchronizing with another. On computer A, I ran: git daemon --reuseaddr --base-path=. --export-all --verbose On computer B, I ran: git clone git://computerA/.git source # worked cd source git pull # worked git push # failed with ...

Fork and sync google code svn into github

How can i fork and keep in sync with an google code svn that i dont have write access to,into a github repos. I want to be able to develop own features in my git but also want to sync against the google code svn.to fetch fixes from google code project side. I know about git-svn and used it before to up and downstream to an svn repos i ha...

git workflow question

Hi, this will be a long one but I hope you could bear with me. I am trying to use git to put my team's source codes under version control. After trying to find different approaches that would work for me, I finally decided to use git format-patch feature. FWIW, the product is an ASP.NET web application running in Windows and I am curren...

DVCS with a Windows central repository

We are currently using VSS for version control. Quite few of our developers are interested in a distributed model (And want to get rid of VSS). Our network is full of Windows machines and while our IT department has experience maintaining Linux machines they would prefer not to. What DVCS systems can host their central repository on Win...

Efficient storage of binary files in a git repository

I would like to have a git repository that consists mainly of binary files. I need to keep track of the changed, added and removed files to the repository, but I don't want for git to version the content of the files themselves. In other words, I just need for git to keep track of changes (change log), but not the content. Is this ev...

Tracking a remotes/p4/master branch in git

I'm cloning a repo that was first generated by git-p4. git-p4 uses a 'remotes/p4/master' branch that I would like to track. How do I tell git, which is cloning that repo, to track remotes/p4/master as well? That way I would be able to check out "origin/remotes/p4/master" or something. ...

How to recover Git objects damaged by hard disk failure?

I have had a hard disk failure which resulted in some files of a Git repository getting damaged. When running git fsck --full I get the following output: error: .git/objects/pack/pack-6863e0a0e4b4ded6090fac5d12eba6ca7346b19c.pack SHA1 checksum mismatch error: index CRC mismatch for object 6c8cae4994b5ec7891ccb1527d30634997a978ee from .g...

Started using git recently ... just noticed clones of my files with ' ~ ' appended in the end... why is this happening

I used git to commit changes in my repository, followed these steps git add . git commit -m "message" but noticed a clone of the file where changes were made also present in the repository new file had '~' symbol appended at the end. why did this happen ? And how can I prevent it in the future ? Also some thoughts on how to remove t...

Difference between GIT and CVS

What is the difference between git and cvs version control systems? I have been happily using CVS for over 10 years and have been told that GIT is much better. Could someone please explain what the difference between the two is and why one is better than the other? ...

git: Suddenly can't push, or clone, or anything

Out of the blue, I can't push, or clone or pull with git. I used to push successfully all the time. I don't remember doing anything unusual, but today it just stopped working. (I'm using git-gui on XP.) Whenever I try to push, the program waits for like 4 minutes and then gives me this: FATAL ERROR: Server unexpectedly closed network c...

git rebase vs git merge

When does one use git rebase vs git merge? Does one still need to merge after a successful rebase? ...

What is this Git warning message when pushing changes to a remote repository?

The description is a bit terse. I simply added a file on my local master branch and pushed it back to a remote repo. Any idea why this is coming up? warning: updating the current branch warning: Updating the currently checked out branch may cause confusion, warning: as the index and work tree do not reflect changes that are in HEAD. wa...

Git: post-receive email hook, including diff patches?

Hi all, I found a post-receive hook for Git after some googling that I use to e-mail all commits to a remote/shared repo. The problem with this post-receive hook (found here: http://bit.ly/19NdKG), is that it only has the capability to provide who made the commit, the log message, date, file(s) affected. I also want to see the affecte...

How to copy a local Git branch to a remote repo

I've taken the following steps so far: 1) Cloned a remote Git repo 2) Branched the master branch to an experimental 3) edited/tested/committed code in the experimental branch Now, I'm not ready to merge experimental into master. I do however want to push it back to the remote repo as that's the repository I share with a few colleagues....

How can I convert to Mercurial without the extra "committer:" line in the log?

Converting a repository from Git to Mercurial results in a load of spurious "committer:" lines in each log message. I can't figure out a way to not generate these. If I convert a SVN repository, these lines aren't added. It seems to be a git thing only. This is easy to test. Here's how on Linux: mkdir repo && cd repo git init echo hell...

Git workflow when working on part of a source tree with a remote server

Hi all, I have a project which contains different components that everyone works on. We have a server-side component, and N amount of client components that interact with the server. I myself am responsible for one of the client components. I'm at a point where I'd like to branch off to develop new features for the client. The problem...

Google Code + SVN or GitHub + Git

Let me start by telling you that I never used anything besides SVN and I'm also a Windows user. I have a couple of simple projects that are open-source, others are on there way when I'm happy enough to release their source code but either way, I was thinking of using Google Code and SVN to share the source code of my projects instead of...

Amending a Git commit to a shared repo

Hey everyone, I have a local git repo which I recently made a commit to, then pushed to a shared repo. Only after I pushed it to the shared repo did I realize I made an ugly mistake. I amended it locally no problem after I fixed my source with: git commit -C HEAD -a --amend After that, I tried another git push origin and I get the fo...