Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (29.3k points)

This sounds so simple, but I just can't figure it out. I made an experimental branch a while ago, and now I'd like to pull in all the changes that happened on master since I made it. This is all local. I want to pull from local master into local my_branch, but I can't do it. This doesn't seem to work, telling me that master isn't a git repository:

git pull master

1 Answer

0 votes
by (50.2k points)

For this you need to tell the git, where to pull the changes, for that you could use the following command:

git pull . master

In this case, the command should run from the current repository/directory.

But if you are working locally then to pull the changes just merge the branch

git merge master

This will pull changes to your local branch.

Browse Categories

...