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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:03:44+00:00 2026-06-16T03:03:44+00:00

Example: I cloned the Github repository, created a new branch and started working on

  • 0

Example:

  • I cloned the Github repository, created a new branch and started working on a feature.

  • My co-worker clones the same exact Github repository, creates his own branch on his local machine (git checkout -b mylocalbranch), and works on his own feature.

  • My co-worker finishes his feature before I do and pushes it to production and back to Github.

  • I finish my feature 30 minutes later and want to push my work without causing any conflicts.

What is the best way to push my work to production and back to Github without causing any conflicts?

  • 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-16T03:03:45+00:00Added an answer on June 16, 2026 at 3:03 am

    Lets say your co-worker merged his code to production branch.

    Now the branch yourfeature you created from earlier production is outdated a bit and has few commits by you on top of it.

    What you have to do now is :

    • switch to production branch
    • Pull it (so you have latest changes including changes by ur co-worker)
    • go to your yourfeature branch
    • Rebase your branch with production : This will replay your commits of this branch over the latest production.
    • If any conflicts arise: They are due to the same line changes made by your co-worker where you are also updating something.

    Read more on rebasing here

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

Sidebar

Related Questions

I have a local git repository a central repo at github. I'm working on
I'm working with AnythingSlider and done it exactly the same as how the example
When I clone something from Github, it creates a folder with the same name
I got this scenario: I created a Git repository. $ git init Cloned an
After cloning a git repository, How can I get the repository file? for example)
I forked a github repo and cloned the fork to my machine. Then I
In the jQuery example below, before showing a cloned segment of HTML, how do
I have 2 html elements, 1. <div class=drag>..example.jpg..</div> contains images that can be dragged/cloned/dropped.
For example, I want to use some framework that's located on Github. Is there
First I understand I should probably be using GitHub or some other online repository,

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.