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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T12:52:38+00:00 2026-05-19T12:52:38+00:00

My question is, is there a way to mark a specific commit(s) so that

  • 0

My question is, is there a way to mark a specific commit(s) so that either it won’t be merged into another branch, or it will be ignored when I issue a “git push” or fetch from another repository?

My understanding is that you can cherry-pick specific commits to merge into the current branch; is there some way to mark a commit as ‘local’ to a specific machine/repository/branch?


The problem this question grew out of, I am currently solving a different way. Specifically, there is a specific version of sqlite3-ruby (1.2.5) that I require to work on a Rails application on one OSX machine to which I don’t have root access. Right now I’ve made the commit to specify the version in the Gemfile on a local branch called “mac-bundle”, and my plan is simply to switch to that branch and merge necessary changes before I run bundle if I need to install a ruby gem.

Which is a minor but live-withable annoyance. It seems possible that a similar situation might arise where the same workaround won’t be quite as acceptable, so I thought I would ask for ideas on a different solution.

(Question similar to this one: Committing Machine Specific Configuration Files , and my current solution is similar to Greg Hewgill’s answer.)

  • 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-19T12:52:39+00:00Added an answer on May 19, 2026 at 12:52 pm

    No, there is not a way to mark a commit as “not to be included in merges”. Using separate branches is pretty much as close as it gets.

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

Sidebar

Related Questions

Question Is there a way to have a method that will always run anytime
That's basically the question, is there a right way to implement operator<< ? Reading
Question: Is there an easy way (library function) to perform a bitwise AND or
I have a simple question. Is there a way ( using reflections I suppose
Maybe this is a dumb question, but is there any way to convert a
This might be a stupid question but if there's a better or proper way
According to an earlier question about Visual Studio configurations , there's no way to
There may be more than one way to ask this question, so here's a
Sorry for the simple question but I feel like there's a smarter way to
There are lots of questions on how to improve communication between teams. One way

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.