「笔记】GIT

如题。

Preparations

这些都是为了便于确认你的身份

1
2
> git config --global user.email "you@example.com"          #你的邮箱地址
> git config --global user.name "Your Name" #你的名字

Repo Cloning

1
> git clone "https://github.com/username/repository.git"    #你的仓库地址

Commitments

1
2
3
> git add --all                                             # --all 添加所有改动
> git commit -m "Commit Message" #确认提交改动时的备注和提交信息
> git push -u origin master # origin 原始仓库, master 默认分支