Push local non-git project to remote github repo

Initiate a local repository in project directory

$ git init

Commit local files to local repo

Add remote repo

git remote add origin *[your remote repo url]*

Push local repo master branch to remote master branch

git push origin master

猜你喜欢

转载自blog.csdn.net/zhangmagle125/article/details/51095634
今日推荐