GIT常用指令

**生成秘钥 ssh-keygen -t rsa -C "youremail@example.com" 1、进行初始化将目录变成仓库 git init2、设置姓名以及邮箱git config --global user.email "you@example.com" git config --global user.name "Your Name"3、关联到远程仓库 git remote add origin 你的远程库地址 4、远程库与本地同步合并git pull --rebase origin master5、把文件添加到本地版本库git add . 6、用命令git commit把文件提交到仓库 git commit -m 'note' 7、将最新的修改推送到远程仓库 git push -u origin master8、拷贝代码 git clone你的远程库地址

    推荐阅读