Git 版本控制

下载

Download

配置

$ git config --global user.name "your-name"
$ git config --global user.email "your-name@domain.com"
$ ssh-keygen -t rsa -C "your-name@domain.com"

将已有文件夹推送到远程仓库

$ cd existing_folder
$ git init
$ git remote add origin ...
$ git add .
$ git commit -m "Initial commit"
$ git push -u origin master

撤销 git add . 操作

$ git reset --mixed