Git上传代码到远程GitHub

git add .

git commit -m "message"

git remote add origin https://github.com/xxx/xxx.git

git pull origin master --rebase

git push origin master --force

Git常见报错:Updates were rejected because the tip of your current branch is behind_hint: updates were rejected because the tip of you-CSDN博客

你可能感兴趣的:(git,github)