I have two branches. I want to create a new one. How do I know which branch it will pull from to start it?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you just type
git branch, it will branch off from the commit you currently have checked out. The same applies if you usegit checkout -bto create a new branch and immediately check it out.Alternatively, you can specify a start point. Both of the following will create a branch “bar” which starts at the current tip of “foo”: