i answer myself, it can help others :

in my case, i have two remotes origin (which is my fork on github) and dolibarr (official dolibarr repo).

in order to retrieve a branch, let's take 10.0, you have to :

1) git fetch dolibarr

2) git checkout -t dolibarr/10.0

that's all !


Le 11/07/2019 à 15:45, Christophe Battarel a écrit :

do you have an example ?

Le 11/07/2019 à 12:40, Sasa Ostrouska a écrit :
On Thu, Jul 11, 2019 at 12:42 PM Christophe Battarel
<christophe.batta...@altairis.fr>  wrote:
i should be more accurate :

1) i have a fork on github based on dolibarr github repo

2) i have a local repo linked with my fork

3) i often do git pull from dolibarr (not my fork) github repo to get latest 
code, then i push on my github fork

4) this way i can make commit on my local repo, push on my github fork, and 
make PR on dolibarr official repo.


My question is : when a new branch is created on dolibarr official repo (latest 
was 10.0), how do i get it in my local and my fork repos ?

"git fetch " should do the job for everything. Then you have to use
"git merge" to merge what you need and where you need it.

man git fetch

Rgds
Saxa

i guess other dolibarr contributors should face the same "problem" (for me)...


Thanks

Christophe


_______________________________________________
Dolibarr-dev mailing list
Dolibarr-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev


_______________________________________________
Dolibarr-dev mailing list
Dolibarr-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev
_______________________________________________
Dolibarr-dev mailing list
Dolibarr-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev

Répondre à