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

Asked 1 years ago, Updated 1 years ago, 453 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-30 17:51

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 10:50

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.