aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-05-13 16:53:33 +0100
committerChristopher Baines <mail@cbaines.net>2018-05-13 21:09:53 +0100
commitf18edd863e8c316e61ddaf457ebcd7f14d25dcb1 (patch)
tree0491670c4333ab5b983218b499fda40e062889c4
parenta1df530548cb748316006b03c57a9a72ff72bfc7 (diff)
downloadmagit-tutorial-f18edd863e8c316e61ddaf457ebcd7f14d25dcb1.tar
magit-tutorial-f18edd863e8c316e61ddaf457ebcd7f14d25dcb1.tar.gz
Fill in the Adding remotes section
-rw-r--r--README.org28
1 files changed, 28 insertions, 0 deletions
diff --git a/README.org b/README.org
index 491032d..79043b8 100644
--- a/README.org
+++ b/README.org
@@ -87,6 +87,34 @@ as Enter). To close the window, press =q=.
* Adding remotes
+A remote can be added by pressing =M= from the Magit status window.
+
+** Creating a new (temporary) Git repository
+
+For the purposes of the tutorial, create a temporary Git repository on
+your computer to use as a remote.
+
+The =magit-init= command can be used to create a new Git repository.
+
+In this case, press =M-x magit-init=, and then enter an appropriate
+path. Remember where you've created the temporary repository.
+
+** Adding the test remote
+
+To use the temporary Git repository as a remote, from the Magit status
+window, press =M= to bring up the Remote options, then =a= for adding
+a new remote.
+
+Enter =test= as the remote name, and then the full filename for the
+temporary Git repository you created above as the remote URL. When
+prompted to set this remote as the pushDefault, answer =n= for no.
+
+** Easily viewing remotes and branches
+
+From the Magit status window, press =y= to get an overview of your
+local branches, and those on all of the remotes. Press =q= to return
+to the Magit status window.
+
* Pushing
* Pulling