The meaning and usage of git push -u

Author: Peach Blossom Land Ah
Source: blog Garden
Links: https://www.cnblogs.com/taohuaya/p/10642988.html
Description: The author reserves the right to reprint this article only.


When we first submitted git:

 

I found that the -u parameter was used above, and there was no explanation. I searched for the usage of -u. After adding the parameter -u, you can directly use git push instead of git push origin master in the future.

$ git push -u origin master

Guess you like

Origin blog.csdn.net/chenzz444/article/details/104408607