Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-06-19 21:07:19 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-06-19 21:07:19 +0300
commit2f00709f337c76982dfe69cbc62dc3cb148131f2 (patch)
tree0cc6ceef69f03d9fcc2bc0e27ce4341b40a0773e /doc/topics
parent8bb837c4d180720d4d923ef2e7bd2c9a46ca97a0 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/topics')
-rw-r--r--doc/topics/git/git_rebase.md3
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/topics/git/git_rebase.md b/doc/topics/git/git_rebase.md
index bc9337481d4..dd2260b04dc 100644
--- a/doc/topics/git/git_rebase.md
+++ b/doc/topics/git/git_rebase.md
@@ -44,10 +44,9 @@ branch, such as `release-15-3`. You can also specify a different remote reposito
To back up a branch before taking any destructive action, like a rebase or force push:
1. Open your feature branch in the terminal: `git checkout my-feature`
-1. Check out a new branch from it: `git checkout -b my-feature-backup`
+1. Create a backup branch: `git branch my-feature-backup`
Any changes added to `my-feature` after this point are lost
if you restore from the backup branch.
-1. Change back to your original branch: `git checkout my-feature`
Your branch is backed up, and you can try a rebase or a force push.
If anything goes wrong, restore your branch from its backup: