1,首先进入自己要上传的目录文件处
2,git 初始化
git init
3, 将该目录下的文件添加到git中
git add ./
4,提交到本地
git commit -m "Initial commit"
其中引号引起来的是提交信息,可以是中文,方便记忆自己第几次提交
5,remote
git remote add origin git网址
其中origin 可以起别名,不要重复
6, 推送push
git push -u orgin master
git init
git add ./
git commit -m "Initial commit"
其中引号引起来的是提交信息,可以是中文,方便记忆自己第几次提交
git remote add origin git网址
其中origin 可以起别名,不要重复
git push -u orgin master