Commit baec1a87 authored by Marcin Sedlak-Jakubowski's avatar Marcin Sedlak-Jakubowski

Merge branch 'docs-branch-reference' into 'master'

Docs: Add branch reference tip to MR docs

See merge request gitlab-org/gitlab!42114
parents 600a387b 932668ae
...@@ -289,6 +289,17 @@ the command line. ...@@ -289,6 +289,17 @@ the command line.
NOTE: **Note:** NOTE: **Note:**
This section might move in its own document in the future. This section might move in its own document in the future.
### Copy the branch name for local checkout
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/23767) in GitLab 13.4.
The merge request sidebar contains the branch reference for the source branch
used to contribute changes for this merge request.
To copy the branch reference into your clipboard, click the **Copy branch name** button
(**{copy-to-clipboard}**) in the right sidebar. You can then use it to checkout the branch locally
via command line by running `git checkout <branch-name>`.
### Checkout merge requests locally through the `head` ref ### Checkout merge requests locally through the `head` ref
A merge request contains all the history from a repository, plus the additional A merge request contains all the history from a repository, plus the additional
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment