git

The working mechanism of 'git rebase' in git.

This is a capture from A Visual Git Reference that explains the idea of rebase. My understanding is as follows. git is tracking the changes, so 169a6 and 2c33a has (keeps track of) the changes from commit a47c3. the rebase means applying the changes to da985. As a result, f7e63 has (keeps track of) all the changes from b325c to e57...

Web based code review tool for git

I'm using git with trac and I need some simple code review tool. I just need the ability to write some comments on some lines on each commit. I've googled a litte and found gerrit, but It seems too complex for my needs. I also found trac plugin http://trac-hacks.org/wiki/CodeReviewPlugin, I will try it. But maybe you can pont to some be...

Get a single file from a remote git repository

Is there a way to programmatically download a single file from a remote git repository, in Java? I prefer a solution which uses as little bandwidth as possible, preferably only downloading that single file. I do not need to browse the repository, I already have the file's path. I prefer a solution which does not depend on other applica...

How to use git to modify an open source project and let other people update the project without losing my changes

Hey there, So, I'd like to make some changes to status.net (an open source Twitter clone). Let's say I want to make it so that people can add fonts in their 'tweets', hypothetically. But, I want to keep getting updates from the status.net people...Let's say they make some changes and fix some security holes or add a new auxiliary fea...

Using GitHub as a Version Control Tool for a hosted Drupal Site

Would like to know how to use GitHub as a version control system for my hosted Drupal site. What are steps that I need to take to push files from Drupal to GitHub? What files/directories are best to push over to GitHub. Thanks ...

How to push with git to github on Windows?

Simply, I can't: HTTPS push Eclipse git plugin doesn't support it (here) msygit UI consumes all existing memory and hangs turtoisegit consumes all existing memory and hangs SSH push generated the keypair, but it turns out github does not support putty, only ssh I don't want to install cygwin ...

git-svn problem with git add --patch resulting in conflicts

Basically when i want to commit two separate changes in the same file that resulted from an git add --patch <file> operation, git svn rebase later on throws 1-2 conflicts upon comitting the second change when using git add for the second change. so i'm basically doing this (i'm on master branch and have fetched the svn repository): git...

How do I get changes from my trunk into a branch?

I've just started using Git and find that whilst I am implementing a feature in a branch, I will encounter some bug that really needs to be pushed to the trunk as soon as possible. In order to do so, I use checkout to switch back to the trunk, make my changes and commit them. I now have a trunk that is bug free. Unfortunately, my branch...

Unification of DVCS commands

When working on multiple (open source) projects, multiple version controll systems start to be problematic. While they share common operations, I often make mistakes by typing hg add instead git add. I remember seeing project some time ago that made access to different source control software in uniform way by providing basic commands c...

What file permissions should the contents of $GIT_DIR have?

I have restored a git repo from backup and it does not have the correct file permissions. Is it enough to set owner +rw on all files and directories in .git, or is it more subtle? Is there a utility to check or reset .git file permissions? ...

git log over restricts output when using --follow?

On the following server: gsl@aragorn:~/gitTest> uname -a Linux aragorn 2.6.31.12-0.2-default #1 SMP 2010-03-16 21:25:39 +0100 i686 i686 i386 GNU/Linux gsl@aragorn:~/gitTest> cat /etc/SuSE-release openSUSE 11.2 (i586) VERSION = 11.2 I use the following git: gsl@aragorn:~/gitTest> git --version git version 1.7.2.2 I get (with a ba...

Which characters are illegal within a branch name?

The title says it all... ...

Git/Mercurial locally ontop of local cvs checkout

I have read : "Best practices for using git with CVS" "How to export revision history from mercurial or git to cvs?" , and neither suit my needs. At work we use a remote CVS repo. Access to this repo is handled via eclipse CVS tools, and in-house eclipse plugins that are built ontop of team tools for eclipse. This means we can't mov...

Git for Perforce users

I've been using Perforce for a number of years. I'd like to switch to using git for my personal code, but all of the git tutorials that I've seen either assume that you'e a complete source control n00b (which makes them incredibly tedious) or that you're used to svn (which I'm not). I know p4, and I also understand the idea behind a dis...

Shortcut for specifying modified files as arguments to git diff

Given this result of git status: modified: path/to/file-1.txt modified: path/to/file-2.txt Is there a shortcut equivalent of this? git diff path/to/file-1.txt Something like: git diff {1} So that I don't have to type the full path name. I know git stash allows git stash show stash@{1}, so I believe there's something similar for...

Right way to share a git repo over ssh

I'm using a box as a shared repo, and my team connects to it via ssh. What I do is: Create an empty git repository on the central machine git init Then from each workstation do something like git clone ssh://user@central-box/Users/user/Projects/my-project/.git/ This works nice, but git keeps yelling at me every time I make a push so...

Dropbox and Git working together

Hello, I know there are similar questions - this one is the one mine is most like: http://stackoverflow.com/questions/1960799/using-gitdropbox-together-effectively My question is: I've started using Git to keep versions of my school information. Lets say, I have a GradSchool folder where I keep my resume.doc and SoP.doc. This folder is...

Can I configure gitosis to ask for passwords and check against an Active Directory

I have successfully installed and configured gitosis on an Ubuntu server. We're currently just a few developers creating a development platform for a large organization (more than 2000 employees.) Currently they use subversion for version control. The departments can modify their users permissions by editing and commit a single file, m...

Making a git project read only

I just finished an open source project for the company I was interning with. There, SVN was used to manage the project and I made all commits to the repository I was assigned to. I am now interested in hosting the work I did on Github. Even though I can easily add the project to Github, I am concerned about licensing issues. I had a ta...

RW Access git repository using svn (git-svnserver)?

Is there a program that does what git-svn does, but in a situation where the repository on the server is git, and the developer uses svn? I know that github.com allows svn access to the git repositories they host, but it doesn't look like they've released this project open source (yet?), and using their servers is not an option for me ...