git

Best git repository hosting for commercial project?

Which git hosting provider would you use for commercial development? Edit: Let's not turn this question into a discussion of whether a hosting provider is really necessary for a distributed SCM. Have a look at github to see some of the benefits a hosting provider might give you. Second, the fact that git is distributed is hardly the on...

Want to download a Git repository, what do I need (windows machine)?

Hi, I want to download this open source application, and they are using Git. What do I need to download the code base? Update How do I change the working directory when I am using Git Bash? (I want to download the repo at a certain directory, using pwd tells me I will be downloading the repo where I don't want it. ...

How to make sure my git repo code is safe?

If our organisation were to switch from a central-server VCS like subversion to a distributed VCS like git, how do I make sure that all my code is safe from hardware failure? With a central-server VCS I just need to backup the repository every day. If we were using a DVCS then there'd be loads of code branches on all the developer machi...

git instaweb gives 403 Forbidden - No projects found

running git instaweb in my repository opens a page that says "403 Forbidden - No projects found". What am I missing? ...

How do I add an empty directory to a git repository

How do I convince git that I really do want an empty directory? ...

Prevent people from pushing a git commit with a different author name?

In git, it is up to each user to specify the correct author in their local git config file. When they push to a centralized bare repository, the commit messages on the repository will have the author names that they used when committing to their own repository. Is there a way enforce that a set of known authors for commits are used? T...

Grafting a git history on to a svn branch

The situation I have a git repo and an svn repo that both hold the same source code but different commit histories. The git repo has a lot of small well commented submits... while the svn repo has a few huge commits with comments like "Lots of stuff". Both series of commits follow the same changes made in the code and are roughly equival...

Locking binary files using git version control system

For one and a half years, I have been keeping my eyes on the git community in hopes of making the switch away from SVN. One particular issue holding me back is the inability to lock binary files. Throughout the past year I have yet to see developments on this issue. I understand that locking files goes against the fundamental principle...

Invalid file descriptor problem with Git on Windows

I've been using Git on Linux for about a year, and everything works fine. Since recently, a colleague has joined development and he's using Windows. Everything works fine there as well, but sometimes when he tries to push changes to a remote repository (bare) on Linux server it bails out with 'Invalid file descriptor' message. I update ...

Build sequencing when using distributed version control

Right now, we are using Perforce for version control. It has the handy feature of a strictly increasing change number that we can use to refer to builds, eg "you'll get the bugfix if your build is at least 44902". I'd like to switch over to using a distributed system (probably git) to make it easier to branch and to work from home. (Bot...

Does Git work in Windows?

I work on Linux all the time and I'm clueless about Windows not even having one to try it, is Git nowadays working on Windows? or am I making problems for my Windows-pals by using it? ...

What should I know about Git before I start using it?

I have used "traditional" version control systems to maintain source code repositories on past projects. I am starting a new project with a distributed team and I can see advantages to using a distributed system. Given that I understand SourceSafe, CVS, and Subversion; what suggestions do you have for a Git newbie? ...

git-svn merges and commit details

Hi, we are using git-svn to manage branches of an SVN repo. We are facing the following problem: after a number of commits by user X in the branch, user Y would like to use git-svn to merge the changes in branch to trunk. The problem we're seeing is that the commit messages for all the individual merge operations look as if they were mad...

How do I pull from a Git repository through an HTTP proxy?

Note: while the use-case described is about using submodules within a project, the same applies to a normal git clone of a repository over HTTP. I have a project under Git control. I'd like to add a submodule: git submodule add http://github.com/jscruggs/metric_fu.git vendor/plugins/metric_fu But I get ... got 1b0313f016d98e556396c...

Undoing a git rebase

Does anybody know how to easily undo a git rebase? The only way that comes to mind is to go at it manually: git checkout the commit parent to both of the branches then create a temp branch from there cherry-pick all commits by hand replace the branch in which I rebased by the manually-created branch In my current situation this is ...

git diff - handling long lines?

I'm running git-diff on a file, but the change is at the end of a long line. If I use cursor keys to move right it loses colour coding and worse the lines don't line up, making it harder to track the change. Is there a way to prevent that problem, or to simply make the lines wrap instead? (running git 1.5.5 via mingw32) ...

What's the best visual merge tool for Git?

Title says it. What's the best tool for viewing and editing a merge in Git? I'd like to get a 3-way merge view, with "mine", "theirs" and "output" in separate panels. Also, instructions for invoking said tool would be great. (I still haven't figure out how to start kdiff3 in such a way that it doesn't give me an error) edit: My OS is U...

Best Version control for lone developer

I'm a lone developer at the moment; please share you experiences on what is a good VC setup for a lone developer. My constraints are; I work on multiple machines and need to keep them synced up Sometimes I work offline I'm currently using Subversion(just the client to a remote server), and that is working ok. I'm interested in ...

Can I commit only parts of my code using SVN or Mercurial?

I use Tortoise SVN usuallly, but I have been looking into Mercurial since it is a distributed revision control system. What I am looking for, in both systems, is a tool that let me pick only parts of a file and commit them. If I want to do this now, I have to copy to a temp version of the file and keep only the changes I want to commit...

How do you use git svn?

Please provide tips for effectively using git with svn. What are your "best practices"? ...