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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:54:18+00:00 2026-06-04T05:54:18+00:00

I have a remote repository and a local repo. I did a git fetch

  • 0

I have a remote repository and a local repo. I did a git fetch --all and see the branch I want in the local repo, I think create a local tracking branch:

git checkout -t -b bug1000 origin/user/bug/1000

My problem is the pull’s are correct, but push’s are not setup:

>$ git remote show origin
* remote origin
  Fetch URL: XXX
  Push  URL: XXX
  HEAD branch: master
  Remote branches:
    maint                                      tracked
    master                                     tracked
    user/bug/1000                              tracked
    user/bug/1001                              tracked
    user/bug/1002                              tracked
  Local branches configured for 'git pull':
    bug1000     merges with remote user/bug/1000
    maint       merges with remote maint
    master      merges with remote master
  Local refs configured for 'git push':
    maint       pushes to maint       (local out of date)
    master      pushes to master      (local out of date)

My .git/config looks correct:

[remote "origin"]
        fetch = +refs/heads/*:refs/remotes/origin/*
        url = XXX
[branch "master"]
        remote = origin
        merge = refs/heads/master
[branch "maint"]
        remote = origin
        merge = refs/heads/maint
[branch "bug1000"]
        remote = origin
        merge = refs/heads/user/bug/1000

I have already tried git push -u origin bug1000:user/bug/1000 but it doesn’t change anything.

This is using git 1.7.10.2 (latest stable as of writing).

  • 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-04T05:54:18+00:00Added an answer on June 4, 2026 at 5:54 am

    You can add a push entry for that remote, but if you have a lot of these, that might get cumbersome:

    [remote "origin"]
        fetch = +refs/heads/*:refs/remotes/origin/*
        url = XXX
        push = refs/heads/bug1000:refs/heads/user/bug/1000
    

    If you added another virtual “directory” and used bug/1000 locally instead of bug1000, then the push config could be push = refs/heads/bug/*:refs/heads/user/bug/*, which might be cleaner in the long run.

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

Sidebar

Related Questions

I have a remote git repository and I have cloned one branch git clone
I have a local git repository. Recently I have added a remote repository from
I have a remote repository http://github.com/fernandezpablo85/Test This repo has a master branch, but it's
I have a local repository I'm working on and its remote is hosted on
i have commits that are in a remote repository (origin/master) which i want to
I have a local repository cloned from a bare remote repository. The following command
I have a branch called develop in remote bare repo hub , and I
Following is the scenario: I have a remote Mercurial repository at ssh://remotehost//dir/repo and I
I have a local repository and I want to get the latest changes from
I have a repo that's forked from a remote repository. I made some changes,

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.