---
# System prepended metadata

title: Git 20211217

---

# Git 20211217


## Git 

### [ Install Git ](https://git-scm.com/)

### [Fork](https://git-fork.com/)


### [Git book](https://gitbook.tw/)

## Git的基本功(status, add, commit, log, .gitignore)
or create a new repository on the command line
```shell=
echo "# mysite" >> README.md
#code .
#vim .gitignore
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/xxx/mysite.git
git push -u origin main
```
## [Git & GitHub 入門](https://quip.com/pFUnA7u75HbL)

## 指令

```shell=
$ git init

$ git status

# add file

$ git add <file>

$ git commit -m "<message>"

$ git log

```