diff options
author | Christopher Baines <mail@cbaines.net> | 2018-05-13 16:53:33 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-05-13 21:09:53 +0100 |
commit | f18edd863e8c316e61ddaf457ebcd7f14d25dcb1 (patch) | |
tree | 0491670c4333ab5b983218b499fda40e062889c4 | |
parent | a1df530548cb748316006b03c57a9a72ff72bfc7 (diff) | |
download | magit-tutorial-f18edd863e8c316e61ddaf457ebcd7f14d25dcb1.tar magit-tutorial-f18edd863e8c316e61ddaf457ebcd7f14d25dcb1.tar.gz |
Fill in the Adding remotes section
-rw-r--r-- | README.org | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -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 |