You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ git clone -h
usage: git clone [<options>] [--] <repo> [<dir>]
...
-b, --branch <branch>
checkout <branch> instead of the remote's HEAD... --single-branch clone only one branch, HEAD or --branch
Hi, all. git clone has an option (i.e. --single-branch) to specify only clone one branch.
Just wonder if anyone knows how to implement this functionality with pygit2?
With --single-branch, git branch -a will has only one branch, not all remote branches.
Hi, all.
git clone
has an option (i.e.--single-branch
) to specify only clone one branch.Just wonder if anyone knows how to implement this functionality with pygit2?
With
--single-branch
,git branch -a
will has only one branch, not all remote branches.--
Might be helpful:
libgit2/libgit2#2924
nodegit/nodegit#1669
The text was updated successfully, but these errors were encountered: