Skip to content

Commit 2626807

Browse files
committed
content: minor git slides, just before class
1 parent 9a8020d commit 2626807

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

src/content/lessons/git-commands.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,18 @@ git config --local --unset user.email
6565

6666
---
6767

68+
## Init
69+
70+
Creating repositories is simple. It creates a `.git` directory.
71+
The current directory becomes the **working directory**
72+
73+
```bash
74+
## inside a directory that you want to track
75+
git init
76+
```
77+
78+
---
79+
6880
## Status
6981

7082
The `status` sub-command provides information about the state

src/content/lessons/git-remotes.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,16 @@ git clone https://github.com/user/repo.git
7777

7878
---
7979

80+
By default git will clone into the current directory,
81+
creating a directory with the repository's name.
82+
83+
You can provide a different local path:
84+
```bash
85+
git clone https://path/to/repo /path/to/local/clone
86+
```
87+
88+
---
89+
8090
## Adding a Remote
8191

8292
You can add any number of additional remotes:

0 commit comments

Comments
 (0)