Git 常用命令

1 git config --global user.name "agentliu"    //绑定你的git账号
1 git config --global user.email "374601428@qq.com"     //绑定你的git邮箱
1 git init  //初始化,会在项目根目录生成一个隐藏的.git文件夹
1 git add .  //提交到本地仓库
1 git commit -m "项目描述"
1 git remote add origin https://gitee.com/...  //提交地址,新建仓库里面就有,复制进来即可
1 git push -u origin master   //提交!
原文地址:https://www.cnblogs.com/ljjdyz/p/14737202.html