git diff HEAD HEAD^ --name-only | xargs tar -zcvf update.tar.gz
查看当前远程仓库地址
1
git remote show origin
强制推送
1
git push -f origin master
挑拣提交
1
git cherry-pick 9sdsdjksdf #此方法同时也会复制提交时间
二分查找引起报错的提交
1 2 3 4 5 6 7 8 9 10 11
#开始调试 指定终点和起点 git bisect start HEAD f324r23sdf #调试代码是否正常 #if正常 git bisect good #else git bisect bad #循环调试直至找到开始引起错误的提交 b47892 is the first bad commit #确定原因后终止调试 git bisect reset