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

The Archive Base Latest Questions

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

Usually when I do git pull or git status it automatically fetches and merge

  • 0

Usually when I do git pull or git status it automatically fetches and merge the data from the remote branch, and show the local commits that can be pushed on that branch.

A new branch have been created at work and when I do like I usually do, I have the following:

$ git st
# On branch mybranch-s48
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#   modified:   src/main/java/com/xxx/batch/bo/utils/DisplayTagUtils.java
#
no changes added to commit (use "git add" and/or "git commit -a")



$ git commit -am "Test git commit"
[mybranch-s48 28813a3] Test git commit
 1 files changed, 2 insertions(+), 0 deletions(-)


$ git st
# On branch mybranch-s48
nothing to commit (working directory clean)


$ git pull
You asked me to pull without telling me which branch you
want to merge with, and 'branch.mybranch-s48.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 <repository> <refspec>').
See git-pull(1) for details.

If you often merge with the same branch, you may want to
use something like the following in your configuration file:

    [branch "mybranch-s48"]
    remote = <nickname>
    merge = <remote-ref>

    [remote "<nickname>"]
    url = <url>
    fetch = <refspec>

Normally the “pull” doesn’t need anything, and the status would show me I have 1 commit to push.

I can still use git pull origin mybranch-s48 or git push origin mybranch-s48.

This branch is not in the list Local branches configured for 'git pull': but only in the list Local refs configured for 'git push': when doing git remote show origin

Can someone help me please

  • 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-15T06:24:04+00:00Added an answer on June 15, 2026 at 6:24 am

    Try setting the upstream branch:

    git branch mybranch-s48 --set-upstream origin/mybranch-s48
    

    Usually, when you check out a branch that exists on the remote but not in your local repo, a local copy is made to “track” the remote branch. If you created your local branch some other way, and Git doesn’t already know it should be tracking the remote branch, then you’ll need to tell it so, using --set-upstream.

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

Sidebar

Related Questions

So I usually create a feature branch in git, work on it, then merge
I'm usually working on a branch that is diverged from master. So while I'm
After doing a simple merge (one without conflicts), git show usually only shows something
I have a Git repository on my local machine that I cloned from my
Usually I work on the master branch, and I make some commits, and push
There're few question about flattening merge on StackOverflow, with an answer usually being git
I am trying to connect to a remote Git repository that resides on my
I am on branch tm-skeleton and executing git pull does something (technically, it asks
What is the git url (the one that usually ends with .git) of the
I usually rebase when I pull in changes from my teammates, and often time

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.