From f18edd863e8c316e61ddaf457ebcd7f14d25dcb1 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sun, 13 May 2018 16:53:33 +0100 Subject: Fill in the Adding remotes section --- README.org | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) 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 -- cgit v1.2.3