git-01 新项目

git init

git add .

git commit - m " "

git remote add origin ....................@

git push --set-upstream origin master

git push origin master --force

查看目录文件下发现 我们没有初始化 没有仓库 因为没有,git文件

OK有啦

查看文件提交状态

那么我们来提交一下

绿色的表示提交到缓存区的内容

把缓存区的内容提交到仓库

添加远程仓库并提交

 

以后就直接git push就好了

git push origin master --force

查看提交内容

 

查看.git仓库

猜你喜欢

转载自www.cnblogs.com/PoeticalJustice/p/9266432.html
今日推荐