git 第一次上传至远程仓库

发布于 2016-08-28 / Software / 0条评论 / 3,053浏览

1、第一次上传至远程仓库

git init
git add .
git commit -m "first commit"
git remote add origin [Remote Address]
git push -u origin master

最好加上.gitignore

2、clone后上传

git clone [Remote Address]
# 手动复制文件到克隆下来的目录里面
git add .
git commit -am 'readme'
git push
评论
站长统计