Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8837405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:42:57+00:00 2026-06-14T09:42:57+00:00

Something happened to me last time when I created a new branch using the

  • 0

Something happened to me last time when I created a new branch using the -b otions with two args:

I created a branch from master like this

git checkout -b test remotes/origin/master

This created a branch but it also set my configs like this:

branch.test.remote=origin
branch.test.merge=refs/heads/master

I pushed my new branch to github and I kept doing some work in my test branch. After a while I had to add something to my master branch so I did and push.

then I swicthed to my test branch and after doing a git pull I got the changes in my test branch. I assume this has to do on how I created the branches and how the configs are set.

I tried to look up for an explanation but I only see that the second parameter is .

Can someone explain what exactly happened here ?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T09:42:58+00:00Added an answer on June 14, 2026 at 9:42 am

    You are correct. You did not do things the way they are usually done and test is now tracking master. What you want to do is add the parameter to the checkout -b command to not setup tracking for the branch. Then when you want to push test up to the server, make it track a remote test branch by doing git push -u origin test.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created a new Branch before I started dev on something experimental. I usually
Something that seems to be absent from the otherwise great new features for Windows
Something really strange is going on here. I bought a new Mac last week,
I think this is something that you have come across. This has happened to
First, this is my first time with Apache Derby. I am using netbeans, willing
I tried to stress my server a little, and something weird happened. I'm using
Everything before was perfect... but... Today something happened to my License checker (without touching
Something strange happened to my servlets and I think I've figured out why, yet
Something terrible as happened with my poor attempt at adding a CountIf forumula to
I happened to something strange to me on CALayer.And finally found the CALayer's frame.size

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.