Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
2 views
in DevOps and Agile by (29.3k points)
I checked into master branch and created file called product.d, inside I have written pseudo code and saved it. And after that I switched to feature branch and went inside to product.d to add some code and when I am trying to save it I am getting the above error which is shown in screenshot.
Annotation 2020-02-13 162853.png
Any suggestions would be helpful.
 

1 Answer

0 votes
by (50.2k points)

Reason: As you have created the file in the master branch after creating the feature branch.

Solution: The file created in the master, But you are trying to enter the file inside the feature branch. Here in git, the branches will not update dynamically, you need to update the branches by merging the branches

sudo git checkout feature

sudo git merge master

For more information on git commands, check out this git tutorial.

Browse Categories

...