git-nav-downstream.1 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. '\" t
  2. .\" Title: git-nav-downstream
  3. .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
  4. .\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
  5. .\" Date: 05/03/2019
  6. .\" Manual: Chromium depot_tools Manual
  7. .\" Source: depot_tools e58cce6c
  8. .\" Language: English
  9. .\"
  10. .TH "GIT\-NAV\-DOWNSTREAM" "1" "05/03/2019" "depot_tools e58cce6c" "Chromium depot_tools Manual"
  11. .\" -----------------------------------------------------------------
  12. .\" * Define some portability stuff
  13. .\" -----------------------------------------------------------------
  14. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15. .\" http://bugs.debian.org/507673
  16. .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
  17. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. .ie \n(.g .ds Aq \(aq
  19. .el .ds Aq '
  20. .\" -----------------------------------------------------------------
  21. .\" * set default formatting
  22. .\" -----------------------------------------------------------------
  23. .\" disable hyphenation
  24. .nh
  25. .\" disable justification (adjust text to left margin only)
  26. .ad l
  27. .\" -----------------------------------------------------------------
  28. .\" * MAIN CONTENT STARTS HERE *
  29. .\" -----------------------------------------------------------------
  30. .SH "NAME"
  31. git-nav-downstream \- Checkout a downstream branch of the currently checked out branch\&.
  32. .SH "SYNOPSIS"
  33. .sp
  34. .nf
  35. \fIgit nav\-downstream\fR
  36. .fi
  37. .sp
  38. .SH "DESCRIPTION"
  39. .sp
  40. \fIgit\-nav\-downstream\fR takes the current branch and discovers all branches downstream of it\&. If there is only one branch downstream of the current branch, the command will check that out\&. If there\*(Aqs more than one downstream branch, the command will prompt you with a selection of the branches\&.
  41. .SH "EXAMPLE"
  42. .sp
  43. .sp
  44. .if n \{\
  45. .RS 4
  46. .\}
  47. .nf
  48. \fB$ git map\-branches\fR
  49. \fBorigin/master
  50. \fR cool_feature
  51. subfeature
  52. fixit
  53. frozen_branch
  54. \fB$ git nav\-downstream\fR
  55. Previous HEAD position was beec6f4 Make ReflectorImpl use mailboxes
  56. Switched to branch \*(Aqcool_feature\*(Aq
  57. Your branch is ahead of \*(Aqorigin/master\*(Aq by 4 commits\&.
  58. (use "git push" to publish your local commits)
  59. Please select a downstream branch
  60. 0\&. cool_feature
  61. 1\&. fixit
  62. Selection (0\-1)[0]: 0
  63. \fB$ git map\-branches\fR
  64. origin/master
  65. \fB cool_feature *
  66. \fR subfeature
  67. fixit
  68. frozen_branch
  69. \fB$ git nav\-downstream\fR
  70. Switched to branch \*(Aqsubfeature\*(Aq
  71. Your branch and \*(Aqcool_feature\*(Aq have diverged,
  72. and have 2 and 1 different commits each, respectively\&.
  73. (use "git pull" to merge the remote branch into yours)
  74. \fB$ git map\-branches\fR
  75. origin/master
  76. cool_feature
  77. \fB subfeature *
  78. \fR fixit
  79. frozen_branch
  80. .fi
  81. .if n \{\
  82. .RE
  83. .\}
  84. .sp
  85. .SH "SUGGESTED ALIASES"
  86. .sp
  87. Some common short\-hand aliases\&. Feel free to add these to your \fI~/\&.gitconfig\fR file\&.
  88. .sp
  89. .if n \{\
  90. .RS 4
  91. .\}
  92. .nf
  93. [alias]
  94. git down = nav\-downstream
  95. .fi
  96. .if n \{\
  97. .RE
  98. .\}
  99. .sp
  100. .SH "SEE ALSO"
  101. .sp
  102. \fBgit-map-branches\fR(1), \fBgit-nav-upstream\fR(1)
  103. .SH "CHROMIUM DEPOT_TOOLS"
  104. .sp
  105. Part of the chromium \fBdepot_tools\fR(7) suite\&. These tools are meant to assist with the development of chromium and related projects\&. Download the tools from \m[blue]\fBhere\fR\m[]\&\s-2\u[1]\d\s+2\&.
  106. .SH "NOTES"
  107. .IP " 1." 4
  108. here
  109. .RS 4
  110. \%https://chromium.googlesource.com/chromium/tools/depot_tools.git
  111. .RE