GIT-STRIP-MERGE(1) | General Commands Manual | GIT-STRIP-MERGE(1) |
git-strip-merge - A git-merge wrapper that deletes files on a "foreign" branch before merging
git-strip-merge [git-merge options] [-M <commitmsg>] <branch> FILE...
git-merge that deletes files on "foreign" <branch> before merging.
Useful for ignoring a folder in <branch> before merging it with current branch. Works by deleting FILE(S) in a detached commit based on <branch>, and then performing the merge of this new commit in the current branch. Note that <branch> is not changed by this procedure. Also note that <branch> may actually be any reference, like a tag, or a remote branch, or even a commit SHA.
For more information, see <http://stackoverflow.com/questions/3111515>
For both commit messages, the token "<branch>" is replaced for the actual <branch> name.
Additional options are passed unchecked to git merge.
All options must precede <branch> and FILE(s), except -h and --help that may appear anywhere on the command line.
git-strip-merge design "photoshop/*"
https://github.com/MestreLion/git-tools
Rodrigo Silva (MestreLion) linux@rodrigosilva.com
2016-01-31 |