git

change default git hooks

Not sure if this is possible in git (I haven't found it but I may be using the wrong vocabulary in my searches), but it be would useful to be able to modify and enable hooks as the defaults for all new repositories (at the time of creation I mean) so these don't have to be customized each time a new repository is created. It seems the e...

Git-Diff vs. Git-log? What's the difference?

Hey all, I'm a little bit confused about Git. When I'm looking through the manual it appears the Diff is included in the Git-log manual. Also when I'm looking at tutorials and stuff, I find that Git log does much of the same stuff git-diff does. Is Git-Diff's functionality just a subset of Git-log? Thanks! Matt Mueller ...

Make subdirs of git repository their own git repos

As it turns out, this question asked the same thing http://stackoverflow.com/questions/359424/detach-subdirectory-into-separate-git-repository I decided to learn git and to keep my programming homework in a git repo. I think it was a good idea. Now I'm wondering about something: I had a single git repo with a subdirectory for eac...

Manage a Re-write with Git

I have a project, the source of which I'm managing with Git. It's a big project--relative to my experience--and I feel like I will completely re-write at some point after its completion. Though this is a problem I won't encounter for a long time, I'm curious: how would I manage a complete re-write with Git? Would it be best to make a ...

What does this icon mean in Eclipse?

I am using the git plugin for Eclipse. Some of my files are marked with a brown asterisk. What does it mean? Where can I find documentation for what the rest of the git icons mean in Eclipse? ...

git submodule update

hi to everyone. I've spent some time on reading and rereading git submodule documentation and tutorials, and its getting clearer. I do see however that there are a few issues with it, and Im afraid to start using it heavily in my code base before i understand the implications. specifically Im not clear on what the following means (from ...

parsing git output

I'd like to integrate git into production pipeline to stage 3dsmax files. While it is alright to work with git through TortoiseGit, I'd like to communicate with it from the Maxscript to add custom menu commands to 3dsmax. Should I parse git status output text to determine folder status or should I use some wrapping tool to correctly com...

Team Foundation Server and branching characteristics, compared to others

What are the branching characteristics of TFS? I am asking the question because I don't have experience of the tool. Let me discuss what context I am putting it in... Early Branching/Heavy Branching If we look at the tools Perforce, Subversion, CVS, for instance, we see that branching is effectively taking a copy of the trunk. i.e...

Undo part of unstaged changes in git.

How do I undo parts of my unstaged changes in git but keep the rest as unstaged? The way I figured out is: git commit --interactive # Choose the parts I want to delete # Commit the changes git stash git rebase -i master # (I am an ancestor of master) # Delete the line of the most recent commit git stash apply This works, but it would...

git log --quiet is not quiet

git diff --quiet returns exit code as documented. git log --quiet behaves exactly as without quiet. Did I miss something from the docs: --quiet Disable all output of the program. Implies --exit-code. git 1.6.0 This is supposed to be used in a script to compare mybranch with origin/mybranch, to know should I push it or not. ...

How can I see the most recent tagged commits in my repository?

I would like to do something like git log, but I would like to see only tagged commits. I would like to see there tags, and when they were committed. Any ideas? ...

Git - Duplicate commit issue

I'm such a clever person. I decided to clean up the "unknown" commits in my repository by running a command from this blog post: git filter-branch --commit-filter ' if [ "$GIT_COMMITTER_NAME" = "unknown" ]; then GIT_COMMITTER_NAME="a2h"; GIT_AUTHOR_NAME="a2h"; GIT_COMMITTE...

Git to TFS Source Control Migration

Hello. I'd like to see how TFS will work for my command. So I'd like to move our current GIT repository to TFS database. We've used GIT for it's prevailed branching support so I'd like to use TFS 2010 to address that issue. Now question is. How do I export our GIT repo to TFS. Obviously it's some kind of script. Does have anyone done th...

Deleting Files using Git/GitHub

First off, I'm new to Git. I deleted a bunch of files locally on my Mac using Finder. I want the files that I deleted to no longer show in the current branch, but they do. Any Git ninja know a command to update the index? ...

Alias for "git checkout main_branch; git merge topic_branch" ?

In our team we are using a development, staging and a master branch plus branches for issues. With this workflow I find myself doing a lot of the following: For example in the development branch: git checkout staging; git merge development Does anyone have a simple alias for this? It should be something like: merge_with master wo...

accessing local git repository from windows

I have git repository (powered by gitosis) on my local ubuntu server I want to have an access from the other local computer powered by windows xp (msysgit) I have generated rsa key on windows machine and published to ubuntu server I have .ssh/config file setted to use this key on windows machine When I do ssh [email protected] t...

Git svn fetch retrieving only one revision at a time

I'm using Git-1.6.5.1-preview20091022.exe. I've cloned a SubVersion repository using: git svn clone -s https://xxxxx:8443/svn/project/SubProjectA The SubProjectA has the standard layout (trunk, branches, tags). SubProjectA is a copy of another project. It has only 60 revisions if it own. After the command, a folder is created with th...

How to make "git describe" mention the presence or absence of local changes?

Hi! How can I check, in a script, if local changes are present? Perhaps in combination with git describe? ...

Gitiginore all files except those with .rst extensions?

The ** and * in gitignore are a bit confusing. Here is what I have in .gitignore: * !*.rst This works for all *.rst files in the root directory. What about .rst files in subdirectories? I tried * !*.rst !**/*.rst But this does not change anything. ...

How to remove unwanted extra root commit in git repository?

I recently converted a subversion repo, which had been converted from cvs before that and I've ended up with the following structure (simplified for clarity) at the bottom of the tree: * master | ... | | * G |\ | * F | * E | * D | * C Initial commit. | | * A New repository initialized by cvs2svn. The line from G-A contained unwanted ...