git

webhwg 2015-10-13

reverse

commit0提交文件0

commit1提交文件1

commit2提交文件2

reversecommit1操作后剩余文件0和文件2

==========

reset

commit0提交文件0

commit1提交文件1

commit2提交文件2

reset--hardcommit1

这时候出现文件0和文件1

这时候出现sourcetree出现需要pull操作,如果pull那么文件2就又回来了

git命令:gitpush--force

那么就看到没有pull了

相关推荐