What is the difference between dev and origin/dev when you push git?

Asked 1 years ago, Updated 1 years ago, 297 views

I have a question about the git push command below.

In the command 1, I think I will push the current HEAD to the dev branch of the remote repository, but what is the difference in the case of 2?

git

2022-12-29 21:55

1 Answers

The "origin/dev" branch is the "remote tracking branch" for the remote "dev" branch called "origin".In contrast, the "dev" branch is a local branch.

For more information, the Pro Git commentary is easy to understand: Git branch functionality - remote branch


2022-12-31 12:55

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.