All:
I am pretty new in Git, I wonder how can I replace one file with the one from master?
Foe example:
In branch DEV, I have one file called App.js, I decide to use the App.js from master branch to replace it. What is the command to do this?
Thanks
All:
I am pretty new in Git, I wonder how can I replace one file with the one from master?
Foe example:
In branch DEV, I have one file called App.js, I decide to use the App.js from master branch to replace it. What is the command to do this?
Thanks
 
    
    Assuming you're on DEV branch and you want to overwrite only one file from master remote branch:
git fetch 
git checkout origin/master <filepath>
