Git: Difference between revisions

Jump to navigation Jump to search
147 bytes added ,  30 August 2018
→‎Get a build number: Clone a specific branch
→‎Get a build number: number of commits without merges
→‎Get a build number: Clone a specific branch
Line 68: Line 68:
<source lang="bash">
<source lang="bash">
$ git push origin --tags
$ git push origin --tags
</source>
== Clone a specific branch ==
<source lang="bash">
$ git clone --depth 1 --single-branch -b 2.0.0 https://github.com/user/reponame.git
</source>
</source>


Navigation menu