I saw it online and said:
Gitbrand-track for establishing a tracking branch …
Git push –set-upstream for setting upstream
Setting up a trace branch is the same as setting up an upstream, but there are many commands to implement.
Thank you all
It’s the same thing. It’s all about establishing a tracking relationship between the local branch and the remote branch.
The two main differences are in relation to,
--track (abbreviation -t)Is to establish a tracking relationship when establishing a local branch,
--set-upstream (abbreviation -u)After the local branch is established, the tracking relationship is established at the push time (branch can be used for non-push).