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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:29:43+00:00 2026-06-15T19:29:43+00:00

I forked from a repository (upstream), then do my changes locally and push to

  • 0

I forked from a repository (upstream), then do my changes locally and push to my repo (origin).

To add to this, I do most of my work at my console, and today I did some on the laptop.

I pushed to origin on my console, then git fetch origin; git merge origin/master on my laptop the next day.

What happened is that I took all the changes from the day before, committed them to my laptop, and pushed those back to origin. Now I have two sets of commits on my origin/master for the same work, once for the console, and once for the laptop.

I’ve read before that I should publish once, and though I’m certainly not considering altering this pushed history, I do want to avoid this whenever a lapse occurs between workstations. The commit history looks confusing.

I thought the --no-ff option on git pull looked promising, but most of the information I find for this topic is about keeping local branches in sync as master is being developed on by others.

  • 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-15T19:29:45+00:00Added an answer on June 15, 2026 at 7:29 pm

    When you have work that was done in parallel (in terms of history) it’s fine to merge. If you want linear history, use the --rebase option on the pull. Further, you can set your configuration so that pull does a rebase instead of a merge every time.

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

Sidebar

Related Questions

I have a repo that's forked from a remote repository. I made some changes,
I've forked a Mercurial repository, and now I want to pull the changes from
I've committed changes in numerous files to a SVN repository from Eclipse. I then
I have forked a repository, then I made some changes and it looks like
This might be complicated. I forked a repository , create changes to commit point
So I first forked a repo and then made a commit to that forked
(Using Vista)I'm trying to clone an app from my GitHub Repository and push it
I have a forked github repository (call it repo-O and call my fork repo-F)
I'm looking for a way to recover pull requests from a forked repository. Is
I have a repository that is forked from GitHub that has a few modifications

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.