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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:38:55+00:00 2026-06-05T16:38:55+00:00

Quick sanity check – I wanted to create a new remote branch for myself.

  • 0

Quick sanity check – I wanted to create a new remote branch for myself. I want to do the following:

git clone git@github.com:orange/orange.git
git branch foo
git checkout foo
git push foo foo

I’d like to simply clone master, create a new branch named “foo” (using what was in master), then push it to a remote repo called “foo”. Does the above do that? The last line seems a little weird, in that I’m naming “foo” twice.

Thanks

  • 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-05T16:38:57+00:00Added an answer on June 5, 2026 at 4:38 pm

    I think you are confused by the term “remote.” A remote is a repository that exists somewhere else. A remote repository has branches; these are called “remote branches.” If your goal is to push your local foo branch to the repository that you just cloned then:

    git push origin foo
    

    When you git clone, Git creates a remote called origin. So this is the remote you want to push to. Your git push line assumes that there is a remote called foo. If you have not explicitly created one, then it doesn’t exist.

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

Sidebar

Related Questions

Quick sanity check. Is Array.Copy for one dimensional arrays only, or can it handle
I need a quick sanity check. I'm trying to design my views such that
Just a quick sanity check here! If I have a static method in an
Quick Explanation One Silverlight (3.0) project with several XAML pages. I want to load
Quick Question Lets say I have $colname = 'offer_id'; and then I want to
Quick Question: I have the following array (multidimensional): Array ( [preorder] => 0 [data]
quick question. I'd like to remove the sup tag from the following string, and
I am trying to run command line commands from Java and a quick sanity
Quick question, I am working on an APNS enabled app and I just want
Quick question : How do i check if a submit button is clicked in

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.