git初始化

1、git init

2、git add .

3、git commit -m "first commit"

4、git remote add origin https://github.com/imthinktwice/TestRepository.git

5、git push -u origin master -f//强制推送,如果在git上边已经有readme文件时使用,使用前把readme下载下来放到本地,一起push上去就可以了,不然需要pull一下,容易出现各种小问题

猜你喜欢

转载自blog.csdn.net/fynzhy/article/details/81985420