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 9024549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:02:40+00:00 2026-06-16T06:02:40+00:00

I don’t know if I’m misusing Git, or if I’ve got a configuration problem.

  • 0

I don’t know if I’m misusing Git, or if I’ve got a configuration problem.

I clone my Github repos onto machine A and B, then on machine A I do:

git checkout -b branchA
// make edits
git add .
git commit -am "initial"
git push

then on machine B I do:

git pull
git checkout branchA
// make edits
git commit -am "edits"
git push

on machine A I then do:

git pull

However it says:

There is no tracking information for the current branch

so I have to do:

git branch --set-upstream branchA origin/branchA

Why do I have to set the upstream, when it originally pushed it to origin/branchA without problem?

I’m using msygit 1.8. on Windows.

P.S. when i do the pull on machine B, why isnt the new branch branchA tracked by default? git branch doesnt show it (but it does with -r). Can I make all new remote branches be tracked by default when i pull?

  • 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-16T06:02:42+00:00Added an answer on June 16, 2026 at 6:02 am

    since git config push.default doesn’t return anything, that means, with “git 1.8.0.msysgit.0”, your git push means git push origin :, with the refspec ‘:‘ standing for “matching” branch.

    Here it creates a matching branchA on the remote side.

    But that doesn’t make it a remote tracking branch.
    In other word, branch.branchA.merge isn’t set to anything.
    This is why the git pull fails: it doesn’t know what remote branch it is supposed to merge to local branchA.


    Note, your first git push should have displayed the following message:

    warning: push.default is unset; its implicit value is changing in
    Git 2.0 from 'matching' to 'simple'. To squelch this message
    and maintain the current behavior after the default changes, use:
    
      git config --global push.default matching
    
    To squelch this message and adopt the new behavior now, use:
    
      git config --global push.default simple
    
    See 'git help config' and search for 'push.default' for further information.
    (the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
    'current' instead of 'simple' if you sometimes use older versions of Git)
    

    So, with Git2.0, that git push will fail.
    The only way to push branchA will be by setting explicitly its upstream branch (using the same name):

    git push -u origin branchA
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Don't know if this is an eclipse specific problem but whenever I declare a
don't know if the title describes anything about what I'm trying to say but
don't know what happened in my jcrop selection. I think I pressed some keys
Don't be scared of the extensive code. The problem is general. I just provided
Don't really know how to formulate the title, but it should be pretty obvious
Don't know how to google for such, but is there a way to query
Don't know why but font is not displaying.Please help. CSS(in css folder): style.css: @font-face
I don't know why, but this code worked for me a month ago... maybe
Don't these two mean the same thing, first get the value and then increment?
Don't know the difference between the System.Window.Controls.TextBox and System.Windows.Forms.TextBox . Noticed that the System.Windows.Forms.TextBox

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.