git rebase --abort终止rebase行为,并且feature会回到rebase开始之前的状态
$ git rebase develop CONFLICT (content): Rebase conflict in readme.txt Automatic rebase failed; fix conflicts and then commit the result. $ git status On branch feature You have unmerged paths. (fix conflicts and run "git rebase --continue") (use "git merge --abort" to abort the merge) Unmerged paths: (use "git add <file>..." to mark resolution) both modified: readme.txt no changes added to commit (use "git add" and/or "git commit -a")查看readme.md 内容
Git tracks changes of files. <<<<<<< HEAD Creating a new branch is quick & simple. ======= Creating a new branch is quick AND simple. >>>>>>> feature选择保留HEAD或者feature的版本
Git tracks changes of files. Creating a new branch is quick AND simple.在提交:
$ git add readme.md $ git rebase --contine 推荐的Git GUI工具\1. Source Tree(号称最好用):特色支持git flow,一键创建工作流
免费功能
强大:无论你是新手还是重度用户,SourceTree 都会让你觉得很顺手。对于非常重度用户,Source Tree还支持自定义脚本的执行
同时支持 Windows 和 Mac 操作系统
同时支持 Git 和 Mercurial 两种 VCS
内置GitHub, BitBucket 和 Stash 的支持:直接绑定帐号即可操作远程repo
\2. Tortoise git:文件的右键菜单很容易上手
免费
只支持Windows:与文件管理器良好集成
中文界面
与Tortoise SVN相同的体验