我尝试在网上查找,但没有具体说明 "git push "

I tried looking online, but doesn't specify what follows "git push "

我正在使用 github 来获取一些代码。但是,我在使用 git 命令时遇到了问题。需要明确的是,一旦我进入我的文件夹,就将它推送到我的仓库和分支。我用过:

git add . 
git commit -m "changed xyz" 
git push (name of branch?)

通常只需在它后面加上一个遥控器和一个分支:

git push <remote> <branch>

如果您从自己的 github 存储库克隆它,那么您想要的远程可能是 origin,您想要的分支可能是 master,即

git push origin master

可以在

中查看完整的选项范围
git push --help