Differences between git pull origin master git pull origin master

0 votes

What is the difference between git pull origin master and git pull origin/master ?

Feb 11, 2022 in Others by Soham
• 9,710 points
16,561 views

1 answer to this question.

0 votes
To answer your question, the git pull origin master will pull changes from the origin remote, master branch and merge them to the locally checked-out branch. However, the git pull origin/master will pull changes from the locally stored branch origin/master and merge that to the local checked-out branch. The origin/master branch is nothing but a "cached copy" of what was last pulled from origin, which is why it's called a remote branch in the git parlance. This can be interpreted as being somewhat confusing but nevertheless, you can see what branches are available with git branch and git branch -r to see the "remote branches".
answered Feb 11, 2022 by Rahul
• 9,680 points

Related Questions In Others

0 votes
1 answer

Find the differences between 2 Excel worksheets?

Place your column in column A of ...READ MORE

answered Nov 13, 2022 in Others by narikkadan
• 63,600 points
602 views
0 votes
1 answer

What is the difference between hadoop and google analytics ?

I will try and answer this as ...READ MORE

answered Aug 22, 2018 in Others by Frankie
• 9,830 points
1,591 views
0 votes
1 answer

Events & Threading in Windows Forms

I don't think you should be updating ...READ MORE

answered Nov 10, 2018 in Others by nirvana
• 3,130 points
1,036 views
0 votes
0 answers

Mention the difference between Data Driven Testing and Retesting?

Retesting:  It is a process of checking ...READ MORE

Feb 1, 2019 in Others by riya

reopened Nov 12 by Neelam 3,252 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,034 views
+2 votes
1 answer
0 votes
1 answer

Git refusing to merge unrelated histories on rebase

To answer your question, the “git merge” ...READ MORE

answered Feb 9, 2022 in Others by Rahul
• 9,680 points
704 views
0 votes
1 answer

How do I check out a remote Git branch?

The answer to your question has been ...READ MORE

answered Feb 10, 2022 in Others by Rahul
• 9,680 points
819 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP