Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

https://github.com/lextm/sharpsnmplib/network

This repository network graph shows lots of branches (were created in Mercurial), but none of them has a name.

Is there a way to add names?

share|improve this question

1 Answer 1

up vote 1 down vote accepted
git branch branch-name starting-point

or

git checkout starting-point
git branch branch-name

where starting-point is the commit ID of the latest commit in that branch. For example, git br newcompiler 5983450. (You can use gitk or tig as a more convenient way to browse the repository than GitHub's graph.)

Git tags can be created in the same way using git tag.


Migration between VCS systems almost never gives perfect results, so before you continue working on your project, take the chance to clean up the Git repository – it's currently in a messy state; for example, even though the 6.0 tag already exists, it doesn't share any commits with the master branch, as you could see from diff -y <(git lg 40130c97) <(git lg 6.0).

share|improve this answer
    
Thanks a lot. It did create all branch names as I wished. –  Lex Li Jan 26 '12 at 13:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.