Slide 1

Slide 1 text

Git The stupid content tracker

Slide 2

Slide 2 text

git init To turn a regular folder into a git repository.

Slide 3

Slide 3 text

git status To see what’s going on at any time.

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

ls -lah View all files and folders in a human friendly format with extra info.

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

Untracked files: (use "git add ..." to include in what will be committed) README.md nothing added to commit but untracked files present (use "git add" to track)

Slide 8

Slide 8 text

git add README.md Move changes from the working directory to the staging area.

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

Changes to be committed: (use "git rm --cached ..." to unstage) new file: README.md

Slide 11

Slide 11 text

git commit -am “message” Move changes from the staging area to the .git directory.

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

On branch master nothing to commit, working directory clean

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

Changes not staged for commit: (use "git add ..." to update what will be committed) (use "git checkout -- ..." to discard changes in working directory) modified: README.md no changes added to commit (use "git add" and/ or "git commit -a")

Slide 16

Slide 16 text

Untracked files: (use "git add ..." to include in what will be committed) README.md nothing added to commit but untracked files present (use "git add" to track)

Slide 17

Slide 17 text

Changes not staged for commit: (use "git add ..." to update what will be committed) (use "git checkout -- ..." to discard changes in working directory) modified: README.md no changes added to commit (use "git add" and/ or "git commit -a")

Slide 18

Slide 18 text

git add README.md

Slide 19

Slide 19 text

git add .

Slide 20

Slide 20 text

GitHub Centrally distributed

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

git clone [name/URL] Make a copy of a repo.

Slide 23

Slide 23 text

git push Push local changes to the remote repository.

Slide 24

Slide 24 text

git pull Pull the latest version of the remote repository to local.