Git upload local projects

How will local project to push on GitHub?

GitHub repostory find a new URL such as: https: //github.com/hoo334/test.git

Locate the project folder, right-git bash here

git init

git add . 

git commit -m "submit information"

git push -u origin master

 

Submit updates to Github

git status (optional see the changes file)

git add the file you want to submit changes or git add.

git commit -m "submit information"

git push  origin master

 

If a mistake directly delete the files in the directory .git entire folder again git init.

Guess you like

Origin www.cnblogs.com/hoo334/p/12164343.html