From 5b2906c6d7388da1a0b7b34c44352dd6fe7fb670 Mon Sep 17 00:00:00 2001 From: Robert Djurasaj Date: Thu, 7 Feb 2013 11:35:37 -0700 Subject: [PATCH 1/4] add git branch -v explanation --- branching/index.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/branching/index.html b/branching/index.html index 9b2434d..5db0d6d 100644 --- a/branching/index.html +++ b/branching/index.html @@ -215,6 +215,21 @@ Deleted branch testing (was 78b2670). * master +

+ git branch -v + see the last commit on each branch +

+ +

If we want to see last commits on each branch + we can run git branch -v to see them.

+ +
+$ git branch -v
+* master      54b417d fix javascript issue
+  development 74c111d modify component.json file
+  testing     62a557a update test scripts
+
+

git push (remote-name) :(branchname) delete a remote branch From e6ebf986696d7bfd5dc150daccf74bf7c6e5bb23 Mon Sep 17 00:00:00 2001 From: Robert Djurasaj Date: Thu, 7 Feb 2013 15:45:56 -0700 Subject: [PATCH 2/4] Add git remote rename --- remotes/index.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/remotes/index.html b/remotes/index.html index 3023bc8..8e24cbc 100644 --- a/remotes/index.html +++ b/remotes/index.html @@ -111,6 +111,26 @@ origin git@github.com:github/git-reference.git (push) $ git remote -v github git@github.com:schacon/hw.git (fetch) github git@github.com:schacon/hw.git (push) + + +

+ git remote rename [old-alias] [new-alias] + rename remote aliases +

+ +

If you want to rename remote aliases without having to delete them and add them again + you can do that by running git remote rename [old-alias] [new-alias]. This will + allow you to modify current name of the remote.

+ +
+$ git remote add github git@github.com:schacon/hw.git
+$ git remote -v
+github	git@github.com:schacon/hw.git (fetch)
+github	git@github.com:schacon/hw.git (push)
+$ git remote rename github origin
+$ git remote -v
+origin	git@github.com:schacon/hw.git (fetch)
+origin	git@github.com:schacon/hw.git (push)
 

Like the branch naming, remote alias names are arbitrary - just as 'master' From 6321e126bbf071cf8ea92092f4f134902e417779 Mon Sep 17 00:00:00 2001 From: Robert Djurasaj Date: Thu, 7 Feb 2013 16:51:31 -0700 Subject: [PATCH 3/4] Fix typo and move 'git remote rename' location --- remotes/index.html | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/remotes/index.html b/remotes/index.html index 8e24cbc..7815353 100644 --- a/remotes/index.html +++ b/remotes/index.html @@ -111,26 +111,6 @@ origin git@github.com:github/git-reference.git (push) $ git remote -v github git@github.com:schacon/hw.git (fetch) github git@github.com:schacon/hw.git (push) - - -

- git remote rename [old-alias] [new-alias] - rename remote aliases -

- -

If you want to rename remote aliases without having to delete them and add them again - you can do that by running git remote rename [old-alias] [new-alias]. This will - allow you to modify current name of the remote.

- -
-$ git remote add github git@github.com:schacon/hw.git
-$ git remote -v
-github	git@github.com:schacon/hw.git (fetch)
-github	git@github.com:schacon/hw.git (push)
-$ git remote rename github origin
-$ git remote -v
-origin	git@github.com:schacon/hw.git (fetch)
-origin	git@github.com:schacon/hw.git (push)
 

Like the branch naming, remote alias names are arbitrary - just as 'master' @@ -164,13 +144,33 @@ origin git://github.com/pjhyett/hw.git (push) $ git remote -v github git@github.com:schacon/hw.git (fetch) github git@github.com:schacon/hw.git (push) + + +

+ git remote rename [old-alias] [new-alias] + rename remote aliases +

+ +

If you want to rename remote aliases without having to delete them and add them again + you can do that by running git remote rename [old-alias] [new-alias]. This will + allow you to modify the current name of the remote.

+ +
+$ git remote add github git@github.com:schacon/hw.git
+$ git remote -v
+github	git@github.com:schacon/hw.git (fetch)
+github	git@github.com:schacon/hw.git (push)
+$ git remote rename github origin
+$ git remote -v
+origin	git@github.com:schacon/hw.git (fetch)
+origin	git@github.com:schacon/hw.git (push)
 

In a nutshell with git remote you can list our remote repositories and whatever URL that repository is using. You can use git remote add to - add new remotes and git remote rm to delete existing ones. + add new remotes, git remote rm to delete existing ones or git remote rename [old-alias] [new-alias] to rename them.

From 1c92bc8b35bdb53eba4e5d6754fc3ab8741dac67 Mon Sep 17 00:00:00 2001 From: Robert Djurasaj Date: Thu, 7 Feb 2013 16:57:13 -0700 Subject: [PATCH 4/4] change location of 'git branch -v' --- branching/index.html | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/branching/index.html b/branching/index.html index 5db0d6d..0a75034 100644 --- a/branching/index.html +++ b/branching/index.html @@ -215,21 +215,6 @@ Deleted branch testing (was 78b2670). * master -

- git branch -v - see the last commit on each branch -

- -

If we want to see last commits on each branch - we can run git branch -v to see them.

- -
-$ git branch -v
-* master      54b417d fix javascript issue
-  development 74c111d modify component.json file
-  testing     62a557a update test scripts
-
-

git push (remote-name) :(branchname) delete a remote branch @@ -337,6 +322,21 @@ HelloWorld.hello switch to it so your class renaming changes are isolated. We're going to change each instance of 'HelloWorld' to 'HiWorld'.

+

+ git branch -v + see the last commit on each branch +

+ +

If we want to see last commits on each branch + we can run git branch -v to see them.

+ +
+$ git branch -v
+* master      54b417d fix javascript issue
+  development 74c111d modify component.json file
+  testing     62a557a update test scripts
+
+
 $ git checkout -b change_class
 Switched to a new branch 'change_class'