Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check out a particular branch?

Tags:

mercurial

How do I check out a particular named branch of a Mercurial repo?

like image 937
AP257 Avatar asked Dec 03 '10 12:12

AP257


People also ask

What does it mean to check out a branch?

Checking out a branch updates the files in the working directory to match the version stored in that branch, and it tells Git to record all new commits on that branch. Think of it as a way to select which line of development you're working on.

How do I force checkout to a branch?

Force a Checkout You can pass the -f or --force option with the git checkout command to force Git to switch branches, even if you have un-staged changes (in other words, the index of the working tree differs from HEAD ). Basically, it can be used to throw away local changes.

What is the syntax to checkout a particular branch in git?

So, to check out a remote branch, you have first to fetch the contents of the branch. In the latest versions of Git, you can check out the remote branch like a local branch. Syntax: $ git checkout <remotebranch>


1 Answers

Ah. I was asking the wrong question.

I needed to know how to switch to a particular branch in Mercurial.

like image 92
AP257 Avatar answered Oct 21 '22 19:10

AP257