Skip to content

Commit 9582450

Browse files
committed
Merge pull request git-tips#49 from munendrasn/master
merge previous two commits into one.
2 parents 38b7d1d + cb40e78 commit 9582450

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
* [File diff between staging and the last file version.](https://github.com/git-tips/tips#file-diff-between-staging-and-the-last-file-version)
102102
* [Extract file from another branch.](https://github.com/git-tips/tips#extract-file-from-another-branch)
103103
* [List only the root and merge commits.](https://github.com/git-tips/tips#list-only-the-root-and-merge-commits)
104+
* [Merge previous two commits into one.](https://github.com/git-tips/tips#merge-previous-two-commits-into-one)
104105

105106
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
106107
<!-- @doxie.inject end toc -->
@@ -689,5 +690,10 @@ git show <banch_name>:<file_name>
689690
git log --first-parent
690691
```
691692

693+
## Merge previous two commits into one.
694+
```sh
695+
git rebase --interactive HEAD~2
696+
```
697+
692698
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
693699
<!-- @doxie.inject end -->

0 commit comments

Comments
 (0)