Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
git-seminar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Scientific Computing
education
git-seminar
Commits
c2fa1c83
Verified
Commit
c2fa1c83
authored
6 years ago
by
ck85nori
Browse files
Options
Downloads
Patches
Plain Diff
reorganizes remotes chapter
parent
4a13192d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
basics.html
+36
-13
36 additions, 13 deletions
basics.html
with
36 additions
and
13 deletions
basics.html
+
36
−
13
View file @
c2fa1c83
...
@@ -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

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

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>
<!---------------------------------------------------------------------
<!---------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment