git refname ‘origin/master’ is ambiguous

The output of git branch -a shows that you have a remote-tracking branch called origin/master. Perfectly normal. However, the output of git show-ref master contains 6726b4985107e2ddc7539f95e1a6aba536d35bc6 refs/origin/master which indicates that you most likely ran something like the following low-level command: git update-ref refs/origin/master master This command creates a branch (pointing at the same commit as … Read more

How to send pull request on Git

Both Git (the software) and GitHub (the web service) have a concept called “pull request”, and unfortunately they are not exactly the same thing. Native Git The native Git request-pull command has a very short manual page with the following one-sentence description: Summarizes the changes between two commits to the standard output, and includes the … Read more

How to bridge git to ClearCase?

Here’s a method that avoids hijacks, which our team used this method quite successfully for over a year, until we retired ClearCase for Subversion (per company policy, although it is a backwards step for our team – we were basically just using ClearCase as a dumb file system, and virtually working natively in git, but … Read more

How to git-svn clone the last n revisions from a Subversion repository?

You’ve already discovered the simplest way to specify a shallow clone in Git-SVN, by specifying the SVN revision number that you want to start your clone at ( -r$REV:HEAD). For example: git svn clone -s -r1450:HEAD some/svn/repo Git’s data structure is based on pointers in a directed acyclic graph (DAG), which makes it trivial to … Read more