git

GIT for a solo developer

Outside of work I use SVN for my personal projects I wish to keep private. I use it to synchronise sources between my laptop and desktop, for off site backup and the normal advantages SCM brings. The current trendy source control system is GIT and I must admit I'm considering moving to it. But given what I use it for and that I alread...

Git: How to move back and forth between commits

Hi, I have a newbie question about Git: I need to move back and forth in a history of a branch. That means, I need to get all the files to the state they were in in some old revision, and then I need to get back to the latest state in the repository. I don't need to commit. With SVN, it would be svn up -r800 to get to revision 800, ...

With Git, how do I commit a load of deleted files in one go?

I have a load of deleted files I want to commit. But I don't want to type git rm for each one. If i type git rm . -r it will try and delete everything. What do I type to commit all these deletes in one go? See git status below Changed but not updated: (use "git add/rm ..." to update what will be committed) (use "git checkout -...

Git subtree tags

I want to use subtree merges to pull a remote project into a directory in my own git tree. I followed the instructions here: using subtree merge But I'm not sure how to checkout a tag. I imagine this is a common request - you want to pull in an external project but get a safe tagged version of the source. The subtree merge solution wo...

How to use git for file synchronization?

I have a need for distributed file synchronization. So first of all, any suggestions? My idea is git since speed is an issue. My git knowledge is pretty rudimentary though so here's what I did. I downloaded the portable git (I'm on PC so msysgit). I placed a copy into c:\root\git and a copy into c:\root\git c:\client\git\ I created ...

Merge an independent project into a greater one without losing history

I have an independent project, the CPAN module ExtUtils::MakeMaker. It also lives inside Perl. Generally, a release of MakeMaker will be made and Perl will integrate that tarball into its repository. But sometimes Perl will change its copy of MakeMaker and that change will have to go into the CPAN repository. Also the history of Make...

How to revert a "git rm -r ."?

I accidentely said "git rm -r .". How do I recover from this? I did not commit. I think all files were marked for deletion and were also physically removed from my lcoal checkout. EDIT: I could (if I knew the command) revert to the last commit. But it would be a lot better if I could just undo the "git rm -r .". Because I am not reall...

Is Unfuddle reliable?

I am in need of an online project management tool that includes SVN hosting as my team of developers are all remote. I stumbled on a site called Unfuddle and have read decent reviews so far. I am very protective of my code and want to make sure I keep it safe from any unwanted eyes. Has anyone used this tool and are there any better opti...

How does Mercurial stack up against GIT and SVN?

With Phil Haack and others recently tweeting about CodePlex's move to support Mercurial as a DVCS, I thought it might be worth a look. As someone who currently uses SVN for personal projects and TFS at The Office, how does Mercurial compare in terms of usability, features and what are some of the better Mercurial hosting services availa...

permission denied (publickey) Error using git on windows 7

hii all: i'm new to git ..... so when i want to push to git hub with this command : git push origin master i got this : Permission denied (publickey). fatal: The remote end hung up unexpectedly so what the wrong ?? ...

git: Simple solution for pushing between working copies

What I want to do: On my (ssh remotely accessible) university machine I work on a project which I have put under git source control (git init, then git commit -a after every change, all works fine). Now I want to want to work on that project on my private machine at home. Should be easy, since git is a distributed vcs, right? I read the...

Create a mirror Git repository without transferring objects

I have a large set of files (50GB) and they're on two hosts a long distance away and I want to put them in several Git repositories so that each one is a mirror repo of the repo on the other side. But I don't want to transfer the files over the network because it will take a long time (50-60 hours) and it's unnecessary since the files ar...

Can I make git-svn handle svn:eol-style ?

A lot of svn repositories require new files to have an svn:eol-style attribute. Is there any way to ensure that this happens with git-svn ? ...

Backup a Local Git Repository

I am using GIT on a relatively small project and I find that zipping the .git directory's contents might be a fine way to back up the project. But this is kind of weird because, when I restore, the first thing I need to do is git reset --hard. Are there any problems with backing up a GIT repo this way? Also, is there any better way to d...

Repo Sync a particular folder

I am trying to get the source code for the android os. How do I repo sync a particular folder from the master branch? ...

Best free Git web interface

Hello everyone! I'm looking for a free opensource Git Web UI tool like GitWeb on my own remote machine. What do you prefer? ...

Update git-svn list of remote branches

When I have to use svn, I use git-svn to talk to svn. I cloned the repo with the standard git svn clone -s line, and all the remote branches at the time were there. Since then, a new branch has been created, but not by me. I want to checkout/track this branch locally. I can track a branch that I can see (with git branch -r) like so: gi...

How to get commiters name + commit message into subject line of Git hook post-receive

I'm using Git's post-receive hook to send out an email after a commit has been made. it currently includes the git branch, commit hash, repo name, etc. How does one include in the subject line the user who made the commit in addition to the commit message instead? ...

How to execute a git commit/push from within a rake task

I've run into the following issue while trying to execute some git commands from within a Ruby rake task (I've tried without the bash --login -c and get the same result). tmpid='TueJan26014125UTC2010' cmd=["git add .", "git commit -a -m \'Migrate nanoc3 co output to gh-pages #{tmpid}\'", "git push --force origin gh-pages:gh-pages" ]...

Using git subtree merging, while also merging in all branches of all merged subtrees

I'd like to use a popular, open source issue tracker (Redmine) that offers git integration. Unfortunately, each project in the tracker can only be associated with one git repo. Creating multiple projects in the tracker is not my ideal setup. With that in mind, I've attempted to use git subtree merging (explained here, and here). I've cr...