Git clone from perso repo

Hi,

if I want to clone the repo from someone on https://git.openwrt.org/, and from his repo, take a specific head, is it possible?
Exemple, if I take a random repo in my exemple: git clone https://git.openwrt.org/openwrt/staging/nbd.git but from nbd I want the head called testing?
thanks

https://git-scm.com/docs/git-checkout

1 Like

In extent clone:

git remote add nbd https://git.openwrt.org/openwrt/staging/nbd.git
git fetch nbd
git checkout -b testingNBD nbd/testing
1 Like

weird that I got that error, I make a custom build usually without any problem. Do I need to do git clone before and after run git remote add nbd https://git.openwrt.org/openwrt/staging/nbd.git
in the buildroot?

git remote add nbd https://git.openwrt.org/openwrt/staging/nbd.git
fatal: not a git repository (or any parent up to mount point /run/media/perkel)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

EDIT: I used export GIT_DISCOVERY_ACROSS_FILESYSTEM=1
and it worked

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.