sh 来自http://rypress.com/tutorials/git/patch-workflows

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 来自http://rypress.com/tutorials/git/patch-workflows相关的知识,希望对你有一定的参考价值。

$ cd ../marys-repo
$ git checkout master
$ git fetch origin
$ git rebase origin/master
$ git branch -D pink-page
$ git clean -f
$ git checkout master
$ git merge patch-integration
$ git branch -d patch-integration
$ git clean -f
$ git push origin master
$ cd ../my-git-repo
$ git checkout -b patch-integration
$ git am < 0001-Change-pink-to-a-manly-color.patch
$ git log master..HEAD --stat


$ git am < 0002-Add-a-pink-block-of-color.patch
$ git log master..HEAD --stat
$ git format-patch master
git commit -a -m "Add a pink block of color"
# Patch for every commit 
$ git format-patch master

# creates 0001-Change-pink-to-a-manly-color.patch
# Change
$ git checkout -b pink-page
$ git commit -a -m "Change pink to a manly color"

以上是关于sh 来自http://rypress.com/tutorials/git/patch-workflows的主要内容,如果未能解决你的问题,请参考以下文章

sh 等待来自URL的200响应循环

sh 来自cacher

sh 来自env文件的Docker机密

sh 我的自卸车装载来自备份

sh 来自终端的快速提醒(bash)

如何使用来自 Java 文本字段的用户输入运行 .sh 脚本?