git 命令

git init命令

这时候你当前目录下会多了一个.git的目录,这个目录是Git来跟踪管理版本的

提交时报Please tell me who you are

需要设置邮箱地址和用户名

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

下载

 git clone https://github.com/../test.git

在目录下新增文件test.txt

提交

git add .

git commit -m 'changes txt'  

git push -u origin master

git status来查看是否还有文件未提交

原文地址:https://www.cnblogs.com/xujishou/p/5960519.html