How to reset a single file from the feature branch to the remote main branch?
Tuesday, October 10, 2023
If we want to revert the file to its state in the master/main
branch then we can use the following git command
git checkout origin/master path-to-file
Example
git checkout origin/master ./kubernetes/production/values.yml
Recommended Questions
See More
What would be the output of the following code snippet? | Promise Based Output Question | Part Three
Recommended Resources
See More