git

Migrating Clearcase to X

I was asked to choose an open-source alternative to Clearcase-UCM, and I need an advice what would be the best match. Given below are some parameters I've collected: Half of the development teams use the Integration view, development view, rebase and delivery methodology. The rest just work straight on their integration stream with pri...

How do I rewrite committer names in a git repository?

I converted a Subversion repository to Git using git svn but unfortunately only now noticed that some of the author information was wrong. The converted repository is not shared with anybody yet, so I'd like to rewrite the commit logs in it - if possible. How can I rewrite a git repository so that the log for all his commits show e.g. ...

Share folder including Eclipse workspace with Git between WinXP and Mac OS X

Hi, I have this general project folder of mine which includes a variety of stuff: text, images, binary files etc. I want and need to keep this project in version control under git, so if I mess up something I can revert to a previous version of all files. One thing inside this project is an Eclipse IDE Java workspace with all it's cont...

Guide to understanding gitk ?

I am introducing git to a team of developers and i find gitk to be an amazing tool. It's also quite hard to understand, since understanding gitk requires an understanding of both git history and the viewer tool itself. Does anyone have any good references to something like a "beginner's guide to git history with gitk" ? ...

git: a quick command to go to root of the working tree

I wanted a simple git command to go up to the "root" of the repository. I started with a script, but figured that I cannot change active directory of the shell, I had to do a function. Unfortunately, I cannot call it directly with the non-dash form "git root", for instance. function git-root() { if [ -d .git ]; then return 0 fi A...

Preserve git remotes.

I have fixed network of git remotes and I would like them to be attached to repository. Unfortunately git-clone doesn't clone remotes. Is there a way around it? ...

Git with ldap authorization

Is there a way to authorize user via ldap on a git repository? Or phrased slightly differently: Is there a way to deny people pull/push if they are not in a specific ldap group? Edit: Yes, great idea using PAM and/or a hook. Does anyone have experience using git in combination with pam_ldap? ...

How to commit a directory into a git repository?

Hi! I have a stupid problem... however I read the great git tutorial here, I'm unable to create directories. My folder structure is: Code - Python - C++ - F# - ... From within a initialised local repository "Code" I changed into the subfolders "Python", "C++", ... did git init and now I want the same structure on my vers...

Can't seem to discard changes in Git

After seeing the following from the command line: # On branch RB_3.0.10 # Changed but not updated: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # # modified: index.htm I am trying to discard my changes by typing the command: git ch...

How do I fix line ending issues after migrating from SVN to git?

I just finished converting a Subversion repository to git using git svn clone--stdlayout --authors-file=ourcommitters.txt svn://svn.internalserver.com While doing so, I had the git flag 'core.autocrlf' set to 'true' - just in case that matters. After a long time, the command finished. I cleaned the resulting git repository a bit (del...

Can I do 'git svn dcommit' from a SVN git clone which was created with --no-metadata?

I converted a SVN repository to git using git svn clone --stdlayout --authors-file=authors.txt --no-metadata svn://svn.foo.com For some reason, this gave me what looked like a bare repository. There was just a .git directory. In thise cloned repository, I wanted to get a checkout. Since git checkout didn't work, I ran git reset --hard...

Corporate adoption rate of Git?

A discussion amongst some colleagues emerged recently how in today's software industry, two separate worlds exist: FOSS oriented Corporate Question How much is Git used in corporate environments? What is your experience with Git in a corporate environment? ...

How do you avoid that people forget to run 'git push'?

While evaluating the advantages and disadvantages of moving our Subversion-based repository over to Git, one interesting question came up. Even though that we're all quite fond of Git, it might happen that some developer (or a team of developers) forgets to push a feature/bugfix onto the repository from which the packages are built. I'...

Find commits less than N characters to help spot lazy developers

Is it possible in any of the modern SCMs to grab a complete list of commits, their revision numbers and the user that did it, when given a specific character count? I'd like to find out which -- if any -- of the developers are letting the side down with useless commits. Disclamer: I understand that short commit messages can sometimes a...

change timestamp while rebasing git branch

I used to know this but I guess this is one of the things one uses so seldomly that it's easy to forget how it is done: I have reorganized the commits in a branch before it is going to be made public causing the timestamps of the commits to be in an mixed up order. I would rather have them be all be today with only So how do I tell gi...

git push creates 'undo' in remote stage?

Hi, I'm new to git an basically following the directions from here http://genaud.net/2008/08/clearcase-globally-git-locally/ to try and mirror a clearcase snapshot. I create the git repository on the snapshot directory. Then I create a clone of that repository to create my working repository. UPDATE: here's what I did cd d:/views/con...

How do I make git ignore mode changes (chmod)?

I have a project in which I have to change the mode of files (chmod) to 777 while developing, but which should not change in the main repo. git picks up on chmod -R 777 . and marks all files as changed. Is there a way to make git ignore mode changes that have been made to files? ...

What is "git" syntax for getting just the unified diff of how a single commit X changed a single file Y?

I'm writing code to programmatically run git commands and learning git at the same time. Am I mis-reading the man pages or is what I want to do not doable? The following will tell me how MYFILE changed between the two commits: git diff COMMIT1..COMMIT2 -- MYFILE Good. But, let's say I just want to ask how COMMITX changed th...

Start tracking branches/tags on a git-svn repo that was tracking only trunk

I've started tracking an svn repository with git by cloning only its trunk directory. Now I want to track the other stuff, but I don't want to have to clone it again just to use --stdlayout since it takes a long time to download and I already have most of the code locally. How do I change the repository layout to match svn trunk/branches...

Why does git care about trailing whitespace in my files?

What business is it of whatever VCS I'm using to worry about what I put in my files? I don't get what the point here is. Is git version control or syntax checker? ...