Doc: Update Git docs

- Git Branches view now shows the differences between
  local branch and origin
- The + button in Git Branches adds a branch

Task-number: QTCREATORBUG-30209
Change-Id: I75909c7c196b0fd81ca38749e456bc80187b822d
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Leena Miettinen
2024-02-28 14:51:26 +01:00
parent 576747d623
commit 57874c9c0d
4 changed files with 18 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

View File

@@ -309,10 +309,11 @@
\section2 Working with Branches \section2 Working with Branches
To work with Git branches, select \uicontrol {Branches}. The To work with Git branches, select \uicontrol {Branches}. The
\uicontrol {Git Branches} sidebar view shows the checked out \uicontrol {Git Branches} view shows a list of branches, as well
branch in bold and underlined in the list of branches. as the differences between your local branches and their origin.
The branch you checked out is shown in bold and underlined.
\image qtcreator-vcs-gitbranch.png {Git Branches sidebar view} \image qtcreator-git-branches.webp {Git Branches view}
Old entries and tags are filtered out of the list of branches Old entries and tags are filtered out of the list of branches
by default. To include them, select \inlineimage icons/filtericon.png by default. To include them, select \inlineimage icons/filtericon.png
@@ -332,6 +333,20 @@
To refresh the list of branches, select \inlineimage icons/reload_gray.png To refresh the list of branches, select \inlineimage icons/reload_gray.png
(\uicontrol Refresh). (\uicontrol Refresh).
\section3 Adding Branches
To create a new tracking or non-tracking branch, select
\inlineimage icons/plus.png.
\image qtcreator-git-add-branch.webp {Add Branch dialog}
To check out the branch when creating it, select
\uicontrol {Checkout new branch}.
To track the selected branch, select \uicontrol {Track local branch}.
\section3 Managing Branches
The context menu for a branch has the following functions: The context menu for a branch has the following functions:
\table \table