github新项目上传操作(下面的例子以centos7-redis-shell项目为实例)
#1.创建README.md项目说明
echo "# centos7-redis-shell" >> README.md
#2.在本地项目目录中创建.git文件
git init
#3.提交README.md到GitHub上
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/ECP888/centos7-redis-shell.git
git push -u origin master
#4.提交centos7-redis-shell项目到GitHub上
git add "README.md"
git add "redis_1t-cloud_bs.sh"
git add "redis_3t-cloud_bs.sh"
git add "redis_dj-dsl_bs.sh"
git add "redis-3.2.4.tar.gz"
git add "redis-conf.tar.gz"
git add "redis-conf1.tar.gz"
git add "redisdel.sh"
git commit -m "first commit"
git remote add origin https://github.com/ECP888/centos7-redis-shell.git
git push -u origin master