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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:46:22+00:00 2026-06-16T02:46:22+00:00

So I have just started collaborating with someone using a git repository. We are

  • 0

So I have just started collaborating with someone using a git repository. We are pretty new to using git but understand the basics and have devised this workflow for the two of us.

3 branches: Master, User1, User2

We work separately on user1 or user2, and then when we complete the small task that we are working on individually we merge it back to the master branch and resolve any conflicts that there might be.

My question is, after one of us merges with master and resolve conflicts in master, what is the best way to make our respective user branch match master? Just close the branch and checkout a new one?

Also if there are any improvements to our workflow, advice would be greatly appreciated. Trying to get a full understanding of git, 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-16T02:46:24+00:00Added an answer on June 16, 2026 at 2:46 am

    You can always recreate your branch and start a new one based off of master. This is one of the cool things about git, that branches are cheap so you can make/delete as many as you want. I prefer doing something like this rather than maintaining long-running branches.

    Another option is to rebase your branch onto master any time there are new commits in master. Rebasing is a concept that took me a little bit of time to grasp fully and it has a pitfall or two if not used properly, so read up before attempting this. It’s very cool though!

    My workflow for most projects typically involves just one branch, master. I do my work in “topic” branches, meaning I create a new branch for every distinct task I’m working on. When I’m done with that task I can merge it to master and then push so that other people can get those changes. I can then delete my topic branch safely.

    If you’re just starting out with git, this is a great resource: http://git-scm.com/book

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

Sidebar

Related Questions

we have just started using a git account of our Django website project so
I have just started using SlickGrid and was hoping someone can help me solve
I have just started a new project using a Linq to Sql model and
I have just started using NSIS . It works very well but I find
I have just started using XML as I usually use php but I am
I just started using Git VCS and I created repository on BitBucket when I
I have just started using RSpec and I copied the very simple test on
I have just started using flexigrid and wanted to use the resource string to
I have just started a new project and am looking to use the SplitViewNavigator
I have just started a new Xcode project for the first time since downloading

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.