Git的一些简单操作
本地已有要上传的文件夹
在Git库里面创建project,最好名字跟要上传的文件夹一样
然后:
cd 文件夹名
git init
git remote add origin http://公司git地址/用户名/文件名.git
git pull origin master
git add .
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
git commit -m "第一次提交"
git push -u origin master
#Branch 'master' set up to track remote branch 'master' from 'origin'
这一套操作下来,就可以成功将文件夹上传了