git

Running git-instaweb on boot

When i run this (using the update-rc method) on boot, it shows a browser (w3m) pointing to the page and boot halts until I quit the browser. Is there a way to run it silently on boot? I looked at the manpage and it says nothing, so probably it's not supposed to work that way... Am I doing something wrong? ...

Forking private git repo in github.com

Hi, I wonder if this is possible. I have a "starter project" in github (private repository). What I like to do is create customerA repo (also private) but it should be forked from the "starter project". My idea is that Customer B, Customer C, all could have their own private repo and if I fix a bug which are generic in the "starter p...

git diff - external viewer - get all diff results

Hi, When external diff is configured, results are displayed per file, i.e. to view differences for the next file one needs to close currently running diff viewer. Is there a way to make git spawn all diff viewer processes in parallel? If I just spawn process from within external diff script, apparently git deletes the temporary files ...

To find a Git Repo by its ID

How can you search all GIT's IDs in your computer? I created a Git repo at Github. One of my folders has an arrow and a similar figure as f1f633. I know that the repo is one of my other repos. However, I would like to be able to search repo. I searched the figure at Github and at Google unsuccessfully. Perhaps, there is some tool whic...

How do I remove a git submodule?

The title says it all: how do I remove a git submodule? And by the way, is there a reason I can't simply git submodule rm whatever? ...

Git: Renaming a directory in a branch

I have a project using Git where I've branched off of master to rename a directory. The rename in the branch works as expected. When I switch back to the master branch the directory has its original name, but there's also an empty directory tree with the name that I changed it to in the branch. Is this the expected behavior? Am I missi...

Git: squash all then "extract" some commits

Hello, My git commits are a bit messed up and I was wondering if I could squash them all together and then "extract" some commits from that commit. Let's say I have these files in one commit: upload.py, moderate.py, upload.html, moderaion.html How can I split it in two commits like this? upload: upload.py, upload.html moderation: mo...

Connecting to gitosis server through an SSH tunnel.

I've got an SSH tunnel setup on my macbook, like this... $ ssh -o ServerAliveInterval=3 -N -L 22222:gitosis-server:22 [email protected] So I can ssh to localhost:22222 and will end up on the gitosis-server behind the firewall. I've created a local id_rsa.pub file, copied it into the gitosis server(running Centos5), and importe...

How to count total lines changed by a specific author in a Git repository?

Is there a command I can invoke which will count the lines changed by a specific author in a Git repository? I know that there must be ways to count the number of commits as Github does this for their Impact graph. Thanks in advance! ...

Can I associate ssh username with commit with git over ssh ?

I am trying to setup a shared git repository via ssh, copying users public keys to the authorized_keys. I'd really like the "username" from the ssh-key to be part of the commit history in the repo (so that the user "joe" cannot just set his name to be "kate" - we need some kind of accountability). Is there any way to do this ? ...

Disable beep in git diff on windows

While paging through the results of executing git diff, I hear annoying beep sound when I get to the end or beginning of the diff results. I would like to know how I can disable this alarm bell? I am running msysGit on Windows XP. I am unable to edit the accepted answer below, so I will improve on the answer here: By default, msysGi...

How can I achieve traceability in a git server-repository?

I need to set up a centralized git repository for a large team of in-house developers. I need some convincing mechanism that allows me to trace a given commit back to a user. As I understand from this question, this will probably not be the actual git-authors. I do not expect to be using this information for anything (other than satisfy...

Which has better Eclipse support: git or Mercurial

I work in a team of Java-developers who are very familiar with Eclipse. Most of the team uses Windows. We are switching our main project from CVS into something newer. Subversion seems already old and not really that much better than CVS. We are really interested in distributed version control systems, mainly Mercurial and git. Which of ...

Use local Git repository with a master Subversion repository.

Hi, I have heard that it is possible to have a local Git repository on a developer machine, while keeping a master copy of the source code stored in a svn repository. A good use case would be that you have a central svn repository that each developer works with. One developer goes offline occasionally and would like to track changes h...

A git subdirectory in an svn repository?

Hi there, I've got an existing project running in an SVN repository. I want to make use of a 3rd-party app that's hosted on github. All of my external apps I'm currently using are hosted in external SVN repositories, so I have a directory 'externals', that has $ svn pg svn:externals externals externalApp1 http://externalApp1.googl...

Textmate git commands fail with 'sh: line 1: git: command not found'

When trying to use some of the commands from the Git bundle for TextMate (eg. 'Show Uncommited Changes') I get an error message like 'sh: line 1: git: command not found'. How do I make TextMate work with Git? ...

GIT Fogbugz integration

What would you use instead of WebSVN when tying Git into FogBugz? ...

Undoing a git push

I just did a doodoo, and in need of some help :) Here's what I did on my supposed-to-be-stable branch... % git rebase master First, rewinding head to replay your work on top of it... Fast-forwarded alpha-0.3.0 to master. % git status # On branch alpha-0.3.0 # Your branch is ahead of 'origin/alpha-0.3.0' by 53 commits. # nothing to comm...

How to set Subversion properties with git-svn

Is there a way to set subversion properties on a git repository that was created by git-svn? In my case, I want to edit the version of svn:external, svn:ignore and svn:executable. However, the only way to do so seems to involve a check-out with the subversion client. Is there a way to edit svn properties without having to check out the...

Removing redundant repo directories when importing with git-svn ?

I am trying to import a svn repository that follows the standard svn convention (trunk/branches/tags). The "problem" is that below each copy there are two totally useless directories that I'd really like to eliminate in my git repo. My svn structure looks like this: trunk/redundantdir1/redunddantdir2/realstuff branches/b1/redundantdir1/...