Re: [PATCH] README: Added info about setting branch --tracking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Thu, 8 Jun 2017, Piotr Gregor wrote:

> To setup remote tracking of the branch stable/v1.0
> git checkout with --track option can be used:
> 	git checkout -b stable/v1.0 --track origin/stable/v1.0
> Otherwise when git checkout -b stable/v1.0 is used
> branch may not be properly set up to track it's remote counterpart
> (given git option) and users may be confused due to no files present
> in the folder, but README.
> 
> Signed-off-by: Piotr Gregor <pgregor@xxxxxxxxxxxxxxxxxxxxxx>
> ---
>  README | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
> 
> diff --git a/README b/README
> index a618eb5..70e18cd 100644
> --- a/README
> +++ b/README
> @@ -4,3 +4,19 @@ The master branch is unused. You should use an existing branch instead.
>  
>  The stable/v1.0 branch contains the old stable version.
>  The unstable/devel branches contain the development versions.
> +
> +
> +BRANCH CHECKOUT
> +
> +To list available branches for tracking please do:
> +	git branch -r
> +
> +To checkout stable/v1.0 and setup remote tracking to /origin/stable/v1.0 please do:
> +	git checkout -b stable/v1.0 origin/stable/v1.0
> +or
> +	git checkout -b stable/v1.0 --track origin/stable/v1.0
> +
> +Older versions of git will not work with git checkout stable/v1.0.
> +
> +Similarly for the unstable/devel/v1.1.1 branch please do:
> +	git checkout -b unstable/devel/v1.1.1 --track origin/unstable/devel/v1.1.1
> -- 
> 2.1.4

Signed-off-by: John Kacur <jkacur@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux