git local project submitted to the remote repository

//clone

git clone http://***.git
cd 目录
git branch -a
git checkout origin/dev -b origin/dev 

// delete unnecessary files
git rm -r file
git commit -m 'delete all the files, the next push will then copy the project to the folder'
git push
to copy local project came commit
git the Add.
Git commit -m 'branch initialization '
Git Push Origin Origin / dev: remotes / Origin / dev

Guess you like

Origin www.cnblogs.com/yyhhblog/p/12486979.html