What characters can I use in a Git alias?

What characters can I use in a Git alias? For example can “my.branch” or “@mine” be aliases? Is there a way to make the aliases case sensitive? ex: myBranch The alias documentaion does not list acceptable characters or anything about case sensitivity.

How to keep git in Visual Studio from consuming constant 35% CPU?

For a while now, I’ve been seeing the git support of Visual Studio 2013 constantly consuming a large amount of my CPU. I’ve tried Mark Rendle’s methods for disabling git. At one point, removing all the registry keys for git support worked perfectly. However, as of update 2, this method no longer works. I’ve also […]

git-svn fails to dcommit, even after clean checkout

I’m trying to use git–svn with the following project: https://svn.apache.org/repos/asf/commons/sandbox/gsoc/2010/scxml-js/trunk/ Which I’ve checked out using the standard git svn clone https://svn.apache.org/repos/asf/commons/sandbox/gsoc/2010/scxml-js/trunk/ -T trunk -b branches -t tags invocation. I started having trouble using git-svn dcommit with git-svn after branching with git checkout -b and not git svn branch, and then merging that local branch back […]

Pre-commit hook for Git when Hudson build has failed

I’m trying to figure out how to write a pre-commit hook for Git that checks the status of my Hudson build. If the previous build failed, it should disallow anyone from committing without first writing a specific line, e.g. “fixed build.” EDIT: The first answerer has provided one side of the coin: the Hudson API. […]

git pre-commit hook format code – Intellij/Android Studio

This gist shows how to auto-format Java code using the Eclipse formatter at pre-commit. Source: https://gist.github.com/ktoso/708972 Code: #!/bin/sh # # This hook will run the eclipse code formatter before any commit # to make the source look as it’s supposed to look like in the repo. ECLIPSE_HOME=$HOME/eclipse STYLE_FILE=$HOME/org.eclipse.jdt.core.prefs echo “Running pre-commit hook: run-eclipse-formatter———————” echo “Will […]

What git hooks apply to 'git rebase –continue'?

I’m trying to build a set of git hook scripts for my organization, and one I would like to use (for multiple project just for myself) would be to check upon a git rebase –continue that I don’t have any conflicts markers leftover in my code (<<<<<, =====, or >>>>>). I already have such a […]

How do I revert `git fetch upstream; git merge upstream/master`?

This question already has an answer here: Undo a Git merge that hasn't been pushed yet 24 answers

Github: “This email will not be used for commit blame”

How can I use a fake email address with Github? Following Github’s since-changed instructions, I had a fake email like user@server.fake configured with git (git config –global user.email “user@server.fake”) and registered on my email settings page. It was linking my commits, but not since the past week or so, and it has a “(?)” tooltip […]

What is the difference between “git whatchanged — filename” and “git rev-list — filename”

What is the difference between the 2 commands below. I see different outputs. Both are run from a clone having a single branch. git whatchanged -m — foo.c git rev-list –reverse –all — foo.c

Submitting multiple pull requests in Git with Github (General flow)

I’m no git expert by any means, so I want to make sure the following flow is good: Find a repo I want to contribute to. (original repo) Fork the original repo on github. (my fork) Clone my fork to my machine, outside of any project I’m working on. (isolated clone) Include my fork as […]

Git Baby is a git and github fan, let's start git clone.