git commit changes to the remote repository

Adding to the local repository
git add.

Add submitted description
git commit -m 'content'

Before submission to the remote repository start pulling the main branch request
git pull origin master

Code submitted to the local repository
git push -u origin master

Guess you like

Origin blog.51cto.com/13550695/2456997