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?
git branch -vv
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