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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:25:29+00:00 2026-05-24T23:25:29+00:00

I am getting into the GIT world, but it seems like GIT has a

  • 0

I am getting into the GIT world, but it seems like GIT has a huge disadvantage.
Because your are submitting to your own local repository and only after several submissions your are submitting to the outside world, doesn’t it creates many big merges?

  • 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-24T23:25:30+00:00Added an answer on May 24, 2026 at 11:25 pm

    Really, there’s a way around merges in almost all cases in git. Instead of merging, you rebase your local repository, re-arranging history. By using rebase, the canonical/origin repository is never re-arranged and rarely has any merge commits, but local repository histories are re-arranged to more closely match the main repo.

    So:

    git fetch
    git rebase origin/master
    // resolve any conflicts (if there are any) by altering your own commits
    git rebase --continue
    git push
    

    And all commits will be atomic, and the origin/master will never have any merge commits.

    Now, in a rare rare case the rebasing process will become complicated and you’ll find yourself resolving a lot of conflicts, in which case you may want to git rebase --abort and back out of the rebase process and then go for a merge instead, but I’ve gone months without needing to resort to a merge at this point, so keeping the history linear isn’t too hard.

    Essentially what this is doing is taking the least destructive approach. You are saying “hey, all of my commits are ones that I added to my local master branch -after- whatever other people put in the central/canonical branch are my responsibility, so -I- will be the one to re-arrange my code.” In this manner, whatever goes into the master branch of whatever repository is deemed canonical FIRST gets precedence, and other people do not have to deal with merge commits that rewrite history for anything that is successfully pushed to the master branch.

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

Sidebar

Related Questions

I'm just getting into creating some WCF services, but I have a requirement to
I'm having problems getting hudson to checkout my git repo and merge into master.
I've recently started getting into Git on a personal project, and I can see
In my git repository, I have merged branch B into master, getting the the
A Git repository has been cloned on several developers' local machines. Some changes have
I'm just getting started with git and am running into a problem when attempting
Just getting into SQL stored queries right now... anyway, here's my database schema (simplified
Thinking about getting into .net technology project management I've had plenty of experience with
I'm getting into ASP.NET (C# - I know it doesn't matter for this particular
I'm getting into more of a TDD workflow, and have a mix of MVC

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.