OSDN Git Service

Git: Document remote and branch dialogs
authorLeena Miettinen <riitta-leena.miettinen@nokia.com>
Mon, 27 Jun 2011 10:15:12 +0000 (12:15 +0200)
committerTobias Hunger <tobias.hunger@nokia.com>
Mon, 27 Jun 2011 10:35:47 +0000 (12:35 +0200)
Change-Id: I8b244b68ea6bca5118f5be8c1116d6eeec3e49bd
Reviewed-on: http://codereview.qt.nokia.com/761
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@nokia.com>
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
doc/images/qtcreator-vcs-gitbranch.png
doc/qtcreator.qdoc

index a7194de..78c52af 100644 (file)
Binary files a/doc/images/qtcreator-vcs-gitbranch.png and b/doc/images/qtcreator-vcs-gitbranch.png differ
index 95c4f0a..a68e114 100644 (file)
     for Symbian, Maemo, or MeeGo Harmattan devices and for publishing on Ovi
     Store:
 
+
     \list
         \o \l{Deploying Applications to Symbian Devices}
         \o \l{Deploying Applications to Maemo or MeeGo Harmattan Devices}
         \row
             \i  \gui{Launch gitk}
             \i  Start the commit viewer for Git, gitk.
-
         \row
             \i  \gui{Branches...}
-            \i  Display the \gui Branch dialog that shows the local branches at the
-                top and remote branches at the bottom. To switch to a local branch,
-                double-click it. Double-clicking on a remote branch first creates a local
-                branch with the same name that tracks the remote branch, and then switches
-                to it.
-
-                \image qtcreator-vcs-gitbranch.png
-
+            \i  Manage local and remote branches.
+        \row
+            \i  \gui Remotes...
+            \i  Manage remote repositories available in Git.
         \row
             \i  \gui {Stage File for Commit}
             \i  Mark new or modified files for committing to the repository.
             \i  Select a commit to view. Enter the SHA of the commit
                 in the \gui Change field.
         \row
+            \i  \gui Stash
+            \i  Store local changes temporarily.
+        \row
             \i  \gui{Amend Last Commit...}
             \i  Revert the last commit.
 
     \endtable
 
+    \section3 Working with Branches
+
+    To work with Git branches, select \gui{Branches...}. The checked out branch
+    is shown in bold and underlined in the list of branches. Double-click branch
+    names to edit them.
+
+    \image qtcreator-vcs-gitbranch.png "Branches dialog"
+
+    The following operations are supported:
+
+    \table
+        \header
+            \o  Menu Item
+            \o  Description
+        \row
+            \i  \gui{Add...}
+            \i  Create new tracking and non-tracking branches.
+        \row
+            \i  \gui{Checkout}
+            \i  Check out the selected branch and make it current.
+        \row
+            \i  \gui{Remove}
+            \i  Remove a local branch. You cannot delete remote branches.
+        \row
+            \i  \gui{Diff}
+            \i  Show the differences between the selected and the current
+                branch.
+        \row
+            \i  \gui{Log}
+            \i  Show the changes in a branch.
+        \row
+            \i  \gui{Refresh}
+            \i  Refresh the list of branches.
+    \endtable
+
+    \section3 Working with Remote Repositories
+
+    To manage remote repositories available in Git, select \gui{Remotes...}.
+    Double-click the names and URLs of the remote repositories to edit them.
+
+    The following operations are supported:
+
+    \table
+        \header
+            \o  Menu Item
+            \o  Description
+        \row
+            \i  \gui{Add...}
+            \i  Add a new remote repository.
+        \row
+            \i  \gui{Fetch}
+            \i  Fetch all the branches and change information from a remote
+                repository.
+        \row
+            \i  \gui{Remove}
+            \i  Remove a remote repository.
+        \row
+            \i  \gui{Refresh}
+            \i  Refresh the list of remote repositories.
+    \endtable
+
+
     \section3 Using Stashes
 
     With Git, you can put your current set of changes onto a virtual shelf called a \e stash.