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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:13:37+00:00 2026-05-28T11:13:37+00:00

I created a tracking branch so whowasout.com tracked whowasout.com/master $ git remote -v origin

  • 0

I created a tracking branch so whowasout.com tracked whowasout.com/master

$ git remote -v
origin  git@github.com:venkatd/whowentout.git (fetch)
origin  git@github.com:venkatd/whowentout.git (push)
whowasout.com   git@git01.phpfog.com:whowasout.com (fetch)
whowasout.com   git@git01.phpfog.com:whowasout.com (push)


$ git branch -vv
  master        c33b5dc [origin/master] Merge branch 'whowasout.com'
* whowasout.com 7b6b240 [whowasout.com/master: ahead 1] print statement in test.
php

When I commit some changes in the whowasout.com branch and execute “git push”, master gets pushed to origin/master. Is this expected behavior? I was expecting whowasout.com to push to whowasout.com/master.

To push my changes, I currently type “git push whowasout.com whowasout.com:master” but I thought tracking would make this process quicker. Am I on the right track?

  • 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-05-28T11:13:37+00:00Added an answer on May 28, 2026 at 11:13 am

    You will have to do:

    git push whowasout.com whowasout.com:master
    

    This is because whowasout.com doesn’t have a branch whowasout.com and you don’t want one. What you really want is to push whowasout.com branch on local to master on whowasout.com remote, which has to be done like above.

    To get the behaviour that you want so that just git push pushes from whowasout.com branch on local to master on remote, you have to set the push.default config to upstream ( previously called tracking)

    git config push.default upstream
    

    Note that you have to do this because, by default, tracking branches are helpful in tracking the upstream branch when you are doing fetch / pull. When you change the push.default setting, it comes into play in push as well. Otherwise, push just pushes matching refs, i.e whowasout.com branch will be pushed to whowasout.com branch on remote whowasout.com.

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

Sidebar

Related Questions

I have a remote tracking branch tracked locally in my local repository using 'git
I've accidentally unhitched my master branch from tracking origin master I think. It used
Tracking a single remote branch as a local branch is straightforward enough. $ git
I created a new git branch B from branch A with tracking option. Now,
I am getting this error when trying to create a remote tracking branch git
I have a local branch that I created via git branch --track <localFeatureBranch> <remoteSVNBranch>
When I try to create a new branch tracking a remote branch, I get
The usual command is: git checkout origin/branch_i_want -b branch_i_want Git responds with: Branch branch_i_want
If I do git checkout -b samename origin/samename then tracking appears to work fine.
Today I had to work with a remote branch called origin/}__test_syntax_error_in_simpack_settings . I wanted

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.