版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/yangjianbo456/article/details/51511453
git系列文章
参考文章
2.安装完我在Git bash命令窗口输入了姓名和邮箱,但是没有效果;所有就没有按照教程文档里面的方式写了。
我试的没有效果
$ git config --global user.name "Your Name"
$ git config --global user.email "[email protected]"
所以我就使用了下面的命令行就好了:
大概的意思就是:先到你的上传的目录下打开Git bash命令窗口,把下图中的git命令打出来:(不上传readme.md文件就能显示下面的命令窗口)
git init
git add README.md
git commit -m “first commit”
git remote add origin https://github.com/hytcyjb/SwipeBack.git
git push -u origin master
以后再弄再总结。
2016年12月3日00:39:31 【新增】
初次上传时候,有时候还得把分支名称一起带过去;
$ git pull origin master
还有记得有时还需要把服务器内的数据拉下来;$ git pull