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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:18:21+00:00 2026-05-15T00:18:21+00:00

Here is what I did: Cloned a remote repository to my local computer. Created

  • 0

Here is what I did:

Cloned a remote repository to my local computer. Created a second clone from the first clone. Made changes in the second clone. Never touched anything that resides in the first clone.

Now what happens if I directly push to remote repo from the second clone? A new branch is introduced in the remote repo?

Maybe a stupid question but I can’t test it because there are other developers working on the code and I don’t want to mess anything.

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-05-15T00:18:21+00:00Added an answer on May 15, 2026 at 12:18 am

    Now what happens if I directly push to remote repo from the second clone? A new branch is introduced in the remote repo?

    What you would want to do in this situation is clone the central repo again (in case any other programmers made changes) merge your changes with those, and then push that back to the central repo.

    This ensures that your branch is now part of the main branch again.

    Metropolis

    EDIT
    Maybe this will be a little more clear

    1. Clone repo1 to your machine
    2. Make a clone of repo1 on your machine to keep the original in tact
    3. Make changes to repo2 on your machine
    4. Pull changes from repo2 to repo1, merge (if needed)
    5. Clone CR again (in case other programmers made changes)
    6. Pull changes from repo1 to the newly cloned repo (merge if needed)
    7. Push newly cloned repo back to CR
    8. Clone CR again and remove all of your repos to get the newest copy
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I did a little bit of Web Programming here and there but I never
Please refer my previous post here . I did changes accordingly but getting error.
Here is the recreation of my problem http://jsfiddle.net/WsFyV/7/ Select any option from the first
I tried using the answer from here , but it did not work. I
So here's what happened: On machine A, I cloned a shared git repository. Then
I built llvm 3.0, downloaded from here . I did: ./configure CC=gcc CXX=g++ --enable-shared
I downloaded markdown from http://code.google.com/p/wmd/ (well, in fact I cloned the hg repository), in
Here's what I did: Right-clicked on an item in the 'Objects and Timeline' panel.
Here is what I did: In Xcode 4.3.1 File -> New -> Project ->
Did some searches here & on the 'net and haven't found a good answer

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.