All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] README: Added info about setting branch --tracking
@ 2017-06-05  8:01 Piotr Gregor
  2017-06-08  7:57 ` Sebastian Andrzej Siewior
  0 siblings, 1 reply; 5+ messages in thread
From: Piotr Gregor @ 2017-06-05  8:01 UTC (permalink / raw)
  To: jkacur; +Cc: rolf.freitag, linux-rt-users

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@quadrant-systems.co.uk>
---
 README | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/README b/README
index a618eb5..47e3e54 100644
--- a/README
+++ b/README
@@ -4,3 +4,10 @@ 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.
+
+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
+and 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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] README: Added info about setting branch --tracking
  2017-06-05  8:01 [PATCH] README: Added info about setting branch --tracking Piotr Gregor
@ 2017-06-08  7:57 ` Sebastian Andrzej Siewior
  0 siblings, 0 replies; 5+ messages in thread
From: Sebastian Andrzej Siewior @ 2017-06-08  7:57 UTC (permalink / raw)
  To: Piotr Gregor; +Cc: jkacur, rolf.freitag, linux-rt-users

On 2017-06-05 09:01:33 [+0100], 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@quadrant-systems.co.uk>
> ---
>  README | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/README b/README
> index a618eb5..47e3e54 100644
> --- a/README
> +++ b/README
> @@ -4,3 +4,10 @@ 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.
> +
> +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
> +and 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

That is mostly what I asked for. "Newer" git will accept

	git checkout stable/v1.0

go for the remote branch and track. But the long version is fine, too.
You could maybe add a
	git branch -r
to get an overview of the available remote branches. This is probably
helpful for someone not familiar with git.

Sebastian

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] README: Added info about setting branch --tracking
  2017-06-08 10:19 Piotr Gregor
  2017-06-08 12:17 ` Sebastian Andrzej Siewior
@ 2017-06-08 14:16 ` John Kacur
  1 sibling, 0 replies; 5+ messages in thread
From: John Kacur @ 2017-06-08 14:16 UTC (permalink / raw)
  To: Piotr Gregor; +Cc: bigeasy, rolf.freitag, linux-rt-users



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@quadrant-systems.co.uk>
> ---
>  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@redhat.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] README: Added info about setting branch --tracking
  2017-06-08 10:19 Piotr Gregor
@ 2017-06-08 12:17 ` Sebastian Andrzej Siewior
  2017-06-08 14:16 ` John Kacur
  1 sibling, 0 replies; 5+ messages in thread
From: Sebastian Andrzej Siewior @ 2017-06-08 12:17 UTC (permalink / raw)
  To: Piotr Gregor; +Cc: jkacur, rolf.freitag, linux-rt-users

On 2017-06-08 11:19:55 [+0100], 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@quadrant-systems.co.uk>
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>

Sebastian

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] README: Added info about setting branch --tracking
@ 2017-06-08 10:19 Piotr Gregor
  2017-06-08 12:17 ` Sebastian Andrzej Siewior
  2017-06-08 14:16 ` John Kacur
  0 siblings, 2 replies; 5+ messages in thread
From: Piotr Gregor @ 2017-06-08 10:19 UTC (permalink / raw)
  To: bigeasy; +Cc: jkacur, rolf.freitag, linux-rt-users

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@quadrant-systems.co.uk>
---
 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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-06-08 14:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-05  8:01 [PATCH] README: Added info about setting branch --tracking Piotr Gregor
2017-06-08  7:57 ` Sebastian Andrzej Siewior
2017-06-08 10:19 Piotr Gregor
2017-06-08 12:17 ` Sebastian Andrzej Siewior
2017-06-08 14:16 ` John Kacur

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.