File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -107,8 +107,13 @@ When updating a pull-request, please rebase your feature branch
107
107
on top of master by running `git rebase master`. If rebase fails,
108
108
you can re-apply your changes like this:
109
109
110
- # Abort in-progress rebase, if any.
110
+ # Just look around to see the current state.
111
+ $ git status
112
+ $ git log
113
+
114
+ # Abort in-progress rebase and merges, if any.
111
115
$ git rebase --abort
116
+ $ git merge --abort
112
117
113
118
# Make the branch point to the latest commit from master,
114
119
# while maintaining your local changes uncommited.
@@ -117,10 +122,17 @@ you can re-apply your changes like this:
117
122
# Commit all changes in a single batch.
118
123
$ git commit -am'My changes'
119
124
125
+ # Verify that everything looks alright.
126
+ $ git status
127
+ $ git log
128
+
120
129
# Push the changes. We did a rebase, so we need `--force` option.
121
130
# `--force-with-lease` is a more safe (Rusty) version of `--force`.
122
131
$ git push --force-with-lease
123
132
133
+ # Verify that both local and remote branch point to the same commit.
134
+ $ git log
135
+
124
136
And don't fear to mess something up during a rebase -- you can
125
137
always restore the previous state using `git ref-log`:
126
138
You can’t perform that action at this time.
0 commit comments