在github 注册个账号并记住账号密码
git 经常使用的命令集合(转载)
2 在GitHub创建项目会给你一段提示
echo "# cathost" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/xx/xx.git
git push -u origin master
…or push an existing repository from the command line
git remote add origin https://github.com/xx/xx.git
git push -u origin master
在git 命令窗口复制即可
git add 表示添加
git commit -m "注释"表示提交
git push origin master 提交到终端 也就相当于提交到服务器
git pull origin master 从服务器端更新到本地