git 生成patch
2017-03-13 本文已影响86人
谢昆明
general step to generate patch without commit at last
-
commit your local changes using
git commit -a -m "specific message"
Note : don't push this commit. -
generate patch
git format-patch -s -n -1 HEAD
it will generate 0001-.patch -
revert back local commit
git reset --soft HEAD~1
to delete commit but keep your work
git reset --hard HEAD~1
to delete commit with your work
打赏
如果这篇文章解决了您的问题,让我买根烟抽抽。

