Skip to content
Snippets Groups Projects
Verified Commit c2fa1c83 authored by ck85nori's avatar ck85nori :railway_track:
Browse files

reorganizes remotes chapter

parent 4a13192d
Branches
No related tags found
No related merge requests found
...@@ -710,19 +710,9 @@ ...@@ -710,19 +710,9 @@
notes: notes:
- collaboration needs remote repositories - collaboration needs remote repositories
- by-product of remotes is backup: my `~/projects` does not need to - by-product of remotes is backup
be backed up because **every** project is under version control - ideally, `~/projects` needs no backup because **every** project
and has a remote is under version control and has a remote
</section>
<section id="distributed-remotes" data-markdown>
## remotes
![remotes](img/git-remote-solo.svg)
notes:
- remotes have names, default to origin
- remotes are clones
</section> </section>
<section id="distributed-webapps" data-markdown> <section id="distributed-webapps" data-markdown>
...@@ -737,6 +727,39 @@ ...@@ -737,6 +727,39 @@
- create project - create project
- push / pull - push / pull
</section> </section>
<section id="distributed-remotes" data-markdown>
## connecting remotes
```bash
# get fresh clone
git clone url
# add remote to existing repository
git remote add name url
```
note:
- show both commands in web interface when creating new repository
- explain HTTPS and SSH URLs
- for seminar, we'll stick to HTTPS
- you can set up password manager integration later, git integrates
well with the common ones
</section>
<section id="distributed-remote-interaction" data-markdown>
## remote
### interaction
![remotes](img/git-remote-solo.svg)
notes:
- remotes have names, default to origin
- remotes are **full clones**, i.e. entire history
- **fetch** is on the box, so you **fetch everything**
- **fetch** does not integrate branches, i.e. **merge**
- **push** and **pull** also **merge** the *tracking* branch
</section>
</section> </section>
<!--------------------------------------------------------------------- <!---------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment