What command is used to check the default remote branch name of git push?
習慣沉默
習慣沉默 2017-05-02 09:28:47
0
5
605

For example:
git push -u origin master
This command sets origin/master as the default branch to be pushed. Just git push directly from now on.
But I forgot about it after a while. I want to check it out. What is the order?

For example:
git push -u origin test
git push
//The remote branch I pushed at this time should be origin/test

Then my question is, after a while I forgot whether git push will push to origin/master or origin/test
Is there any command to check?

git remote -v can only view the remote URL corresponding to origin.
Am I understanding it wrong?

習慣沉默
習慣沉默

reply all(5)
我想大声告诉你

git branch -vv

phpcn_u1582

git remote -v

習慣沉默

These settings are saved in the local config, use the following command to view:
git config --local -l
Related entries:
push.default
branch.<name>.merge
branch.<name>.remote
Introduction to the entry: git help config

左手右手慢动作

-u settings default

刘奇

git remote -v

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template