git

How do I split a git repository?

I have a git repository containing several modules, each in their own subfolder, and I'd like to split them into independent repositories, ideally preserving as much of their individual histories as possible. Is there a canonical way of doing this? Exact Duplicate http://stackoverflow.com/questions/359424/detach-subdirectory-into-separ...

Is there a way to use review board with git without manually uploading diffs through the web interface every time?

I know review board is open source and I could modify the code myself, but I'm wondering if there is an easier way. By "review board", I mean the web-based diff review tool that lives here: http://www.review-board.org/ ...

git says project description file hasn't been modified even when it is actually modified

Hi, I am on Mac OS X 10.5.5, and when I try to do a git push (I have installed git via git installer available on google code), it shows me the following error Counting objects: 86, done. Compressing objects: 100% (43/43), done. Writing objects: 100% (84/84), 4.68 MiB | 48 KiB/s, done. Total 84 (delta 37), reused 84 (delta 37) *** Proj...

Obtaining version

I'm a sole developer, using GIT for version-control of embedded software written in C. The software needs to be aware of it's version, and it's currently done by including a header file with a single #define: #define SOFTWARE_VERSION "1.021" This header file is automatically created by pre-build Python script that tries to obtain the l...

What directory structure makes sense for DVCS such as git?

What I am used to: Archives on the servers (NY, IN, NC) On my development machine: A directory named ~/work Subdirectories named ~/work/NY/devproject, ~/work/NC/project etc Not infrequently, subdirectories named ~/work/NY/release/1.3/project, ~/work/NY/test/1.3b/project etcSometimes directories named ~/proxy/NY, ~/proxy/NC etc which con...

Incremental linearizing of git DAG

I'm the author of GitX. One of the features GitX has is the visualization of branches, as can be seen here. This visualization is currently done by reading commits which are emitted from git in the correct order. For each commit the parents are known, so it's fairly easy to build up the lanes in the correct way. I'd like to speed up th...

Why should a business use distributed version control?

It seems that many people read about distributed version control and implicitly understand why it is a good thing for open source development, with many distributed developers all acting independently and in accordance with their own choices instead of mandate from management. But from this impression many people form the idea that DVCS...

Why is git-cvsimport missing one major patchset?

This is a followup to a previous question of mine. I can look through the output of cvsps (saved in my ~/.cvsps directory) and see a patchset for a major, complicated commit. But this commit does not show up when I do cvsimport to update my existing git repository. I know that git-cvsimport will ignore patchsets that are newer than 10...

How do I reset a git remote tracking branch?

In another question it was recommend that I try resetting a remote tracking branch to an earlier commit and performing an import a second time. I can't figure out how to do that! I can reset master, but not the branch master is tracking, cvs/master. If I check out cvs/master, I'm not on a branch, so git-reset basically has no effect. ...

Does git branch -m have side effects for other developers?

We've already learned how to switch which branch points to what using git branch -m. If I do this, is it going to make life difficult for the other people pulling from my repository? Say I do a bunch of stuff on a branch topic1 and then do a git branch -m master old_master git branch -m topic1 master git push origin master and then s...

How can I use version control in a more powerful way?

On most of my projects, individual or group, I find that I only use version control to simply pull latest changes and post my own code up. However, I know that there is a lot more to version control, what with branches and other powerful features that I don't use. Can someone give me advice on how to use version control in a more power...

how do I pull a remote tracking branch while in the master branch

I'm in master and I do a git pull, I get a message indicating I need to pull a remote branch. Typically I do a git co [branch] then git pull/rebase. Is there a way to git pull/rebase of [branch] without having to do a git co [branch] first? ...

How can I "diff -c" with git?

In $VCS I make heavy use of $VCS diff -c $N to see only the changes introduced in revision $N (ie, diff -r $N..$N+1). How can I do the same thing with git? ...

How significant is the bazaar performance factor?

I hear all this stuff about bazaar being slower than git. I haven't used too much distributed version control yet, but in Bazaar vs. Git on the bazaar site, they say that most complaints about performance aren't true anymore. Have you found this to be true? Is performance pretty much on par now? I've heard that speed can affect workf...

Git format-patch to be svn compatable?

Is there any way to get a patch created with git format-patch to be svn compatible so that I can submit it to an svn repo? I'm working off an svn repo on github and want to submit my changes back to the main repo. I need to create a patch to do this, however the patch cannot be applied since git formats that patch differently then svn. ...

how can I remove the unwanted objects from my repo after filter-branch --subdirectory-filter

I'm using git filter-branch --subdirectory-filter dir/name -- --all to build a repo that only has history relating to that dir/name. Before I do the filter, I clone the original repo (which is very much bigger) into a tmp dir. After the filter-branch, the repo looks just how I want it, with one exception: It seems to still contain ...

What will break if I don't have a git master branch?

Most git repositories have a master branch, but there's really nothing special about this name. You can delete the master branch, rename another branch to master, skip having the master branch altogether. Is anything in git hardcoded to expect a master branch? If I have a repository that doesn't have a branch with this name, is there ...

Can git-svn correctly populate svn:mergeinfo properties?

I am evaluating git-svn and trying to determine how well it will play with a particular svn repository. I am mostly concerned with getting git-svn to perform merges in such a way that the svn:mergeinfo property is correctly set in the subversion repo. Is this possible? Here is what I have done so far: # Checkout the SVN repo. $ git svn...

git status - is there a way to show changes only in a specific directory?

I would like to see a list of files modified since the last commit, as 'git status' shows, but I care only about files located in a single directory. Is there a way to do this? I tried 'git status <directory>', but it seems this does something completely different (lists all changed files, as they would be if I wrote 'git add <directory>...

How can I discover which commits a diff is composed of?

If I were to receive a patch file generated with something like git diff rev^ rev or even git show -p rev, how can I discover which commits are being diffed? I'm not positive this use case is even relevant in git, but noting a file's path and/or revision numbers in the patch header included with cvs/svn give me a warm fuzzy that the pat...