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

  • SEARCH
  • Home
  • 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 7901461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:13:28+00:00 2026-06-03T09:13:28+00:00

When I am not on the master branch, git sometimes complains You asked me

  • 0

When I am not on the master branch, git sometimes complains

“You asked me to pull without telling me which branch you
want to merge with, and ‘branch.basics.merge’ in
your configuration file does not tell me, either. Please
specify which branch you want to use on the command line and
try again (e.g. ‘git pull ‘).
See git-pull(1) for details.”

Just wondering if it is possible to configure git so it does always merge with the associated remote branch from origin. As an example: If I am at branch basics (which I currently am 😉 ) and I make a git pull. Now I want git to fetch this branch from origin and merge it with the same local branch.

Cheers, Rudolf

  • 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-03T09:13:30+00:00Added an answer on June 3, 2026 at 9:13 am

    You can specify the upstream branch (see “How do you make an existing git branch track a remote branch?“):

    git branch --set-upstream basics origin/basics
    

    Or, the first time you push your branch (see “Git: Why do I need to do --set-upstream all the time?“):

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

Sidebar

Related Questions

I want to create a git branch that will work independent of the master
dave@dave-dev:/media/dev/belgravia$ git branch * (no branch) master I'm not sure how this happened, but
I found javascript is not so easy to master. And I want to dive
I'm having problems getting hudson to checkout my git repo and merge into master.
The issue: sometimes, but not every time, Git deletes the static directory of a
So we've gotten a git branch into a tricky state: Two branches: * master
Use case: -Visual Studio is open -Master branch is clean (confirmed with git status)
I am working on a git repository with a master branch and another the
I have a Git repository with 'master' branch. Some time ago (few months), we
Possible Duplicate: Git push error '[remote rejected] master -> master (branch is currently checked

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.