Skip to content

Commit 1347b7f

Browse files
bors[bot]matklad
andauthored
Merge #7189
7189: Extend git evacuation procedure r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2 parents 959406a + 08a1bcf commit 1347b7f

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

xtask/tests/tidy.rs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,13 @@ When updating a pull-request, please rebase your feature branch
107107
on top of master by running `git rebase master`. If rebase fails,
108108
you can re-apply your changes like this:
109109
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.
111115
$ git rebase --abort
116+
$ git merge --abort
112117
113118
# Make the branch point to the latest commit from master,
114119
# while maintaining your local changes uncommited.
@@ -117,10 +122,17 @@ you can re-apply your changes like this:
117122
# Commit all changes in a single batch.
118123
$ git commit -am'My changes'
119124
125+
# Verify that everything looks alright.
126+
$ git status
127+
$ git log
128+
120129
# Push the changes. We did a rebase, so we need `--force` option.
121130
# `--force-with-lease` is a more safe (Rusty) version of `--force`.
122131
$ git push --force-with-lease
123132
133+
# Verify that both local and remote branch point to the same commit.
134+
$ git log
135+
124136
And don't fear to mess something up during a rebase -- you can
125137
always restore the previous state using `git ref-log`:
126138

0 commit comments

Comments
 (0)