git push -u origin master
时间: 2023-10-16 16:05:45 浏览: 145
idea上传代码到github时遇到的Push rejected: Push to origin/master was rejected
5星 · 资源好评率100%
This command pushes the local master branch to the remote origin repository and sets up tracking between the two branches. The -u flag specifies that the local branch should be set up to track the remote branch. This allows you to use git pull and git push without specifying the branch name every time.
阅读全文