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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:06:17+00:00 2026-06-15T00:06:17+00:00

Is there a way to have git always merge without a fast-forward, except for

  • 0

Is there a way to have git always merge without a fast-forward, except for when pulling?

Following a nice git-flow, I like keeping my branch history (easier to remove features, etc later on), so I have set my config to never fast-forward when merging, like so:

git config --global merge.ff false

However, whenever I update my current branch/pull from the remote, it creates a merge commit… which is really gross, especially for forking other projects on GitHub.

Is there anyway to make a git pull always fast-forward?
Unfortunately, I tried doing:

git pull --ff-only upstream master

… only to watch it spit out an error:

fatal: You cannot combine --no-ff with --ff-only.

I’m really tired of seeing this:

Gross: a "git pull" merge commit

  • 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-15T00:06:18+00:00Added an answer on June 15, 2026 at 12:06 am

    You can try this:

    git pull --rebase upstream master
    

    This will rebase your commits on top of upstream commits.

    Here is an illustration of what it does.

    Your local repository:

    * bbbbbbb (HEAD, master) My changes.
    * aaaaaaa Initial commit.
    

    Upstream repository:

    * ccccccc (upstream/master) Their changes.
    * aaaaaaa Initial commit.
    

    After git pull --rebase upstream master:

    * bbbbbbb (HEAD, master) My changes.
    * ccccccc (upstream/master) Their changes.
    * aaaaaaa Initial commit.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to have git status ignore certain changes within a file?
Is there a way to have a git ignore file to ignore all files
The short: is there a way to have a git repo push to and
Is there a way to make a directory in a git repository always the
Is there a way to have setup/teardown code automagically run before/after each test? Something
Is there a way to have a template specialization based on a range of
Is there a way to have ASP classic cdonts email, have an file attached
Is there a way to have hanging operators when indenting with tabs in Vim?
Is there a way to have rails print out a number with commas in
is there a way to have the cobertura test coverage graph be shown on

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.