My question is, is there a way to mark a specific commit (s) so that it either is not merged into another branch, or will it be ignored when issuing a "git push" or retrieving from another repository?
My understanding is that you can choose special commits to hang in the current branch; is there any way to mark commit as "local" for a particular machine / repository / branch?
The problem that this issue has grown up with is currently being addressed differently. In particular, there is a certain version of sqlite3-ruby (1.2.5) that is required to work with a Rails application on one OSX machine, to which I do not have root access. Now I have committed to specify the version in the Gemfile in the local branch named "mac-bundle", and my plan is to simply switch to this branch and merge the necessary changes before starting the package if I need to install a ruby stone.
This is a minor but lively annoyance. It seems possible that a similar situation may arise when the same workaround is not so acceptable, so I thought that I would ask for ideas on a different solution.
(The question is similar to this: Machine-specific configuration files , and my current solution is similar to Greg Huglill's answer.)
source
share