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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T19:12:26+00:00 2026-06-18T19:12:26+00:00

I have a Git repo on BitBucket. I have two branches master and db

  • 0

I have a Git repo on BitBucket. I have two branches master and db. On my laptop I made changes to db, commited the changes and pushed up to BitBucket. I can see the commit in that branch.

Now I’m at my desktop at work and I’ve done a git pull whilst on branch master. It’s pulled down master’s commits but not db, which I guess might be the way it should work. I want to get the latest commits on db so I switch to that branch and do git pull however I get the following message:

You asked me to pull without telling me which branch you want to merge
with…

I’m not really sure why this is happening. I created that branch on this machine so should it not just pull down the commits into that branch?

OUTOUT FROM git branch -vva

$ git branch -vva
  analytics             cea39b9 updated analytics code
* db                    6091b29 minor change to the tag creation code
  master                0a4070c [origin/master] Merge branch 'master' of https:/
/bitbucket.org/billyjones/findr.fm
  remotes/origin/db     faf9970 Got tracks working. Now trying to cache prices.
  remotes/origin/master 0a4070c Merge branch 'master' of https://bitbucket.org/b
illyjones/findr.fm

It’s the faf9970 commit I need to 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-18T19:12:27+00:00Added an answer on June 18, 2026 at 7:12 pm

    If your desktop has not yet a local db branch, you first have to create it:

    git branch db origin/db
    

    It might be necessary to perform a git fetch -a before that.

    If the local db branch already exists make sure that it tracks the corresponding remote branch.

    You can verify that via git remote show origin. Under the heading “Local branches configured for ‘git pull’:” it should show “db merges with remote db”. If that’s not the case execute this command if you are on git 1.8:

    git branch -u origin/db db
    

    If you are on an older version of git, use this command:

    git branch --set-upstream db origin/db
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have git repo with two unrelated branches, master and configs. I've created configs,
I have a git repo which has a few branches - there's the master
I have machine1 with git repo client , which has branches master and fixes_v3
I have a git repo with a dev and a master branch. Now I
I have a simple Git repo with non-branching commits in the master branch. I
I have a git repo hosted with bitbucket and i have a clone on
I have a git repo as my master project. It has some sub-modules added
I have a git repo in /foo/bar/baz with a large commit history and multiple
Newbie Git question: I have a repo set up on bitbucket. I git fetched
I have some git repo with alot of remotes, some of remote branches a

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.