Overwrite single file in my current branch with the same file in the master branch?

后端 未结 1 483
没有蜡笔的小新
没有蜡笔的小新 2021-01-30 02:09

Say I have two branches - master and redesign. How would I go about overwriting the file default.aspx.cs in my redesign branch with the o

相关标签:
1条回答
  • 2021-01-30 02:30

    git checkout master path/to/default.aspx.cs

    Before doing this, you probably have to : git checkout redesign

    So, just git checkout FROM_BRANCH_NAME path/to/file

    0 讨论(0)
提交回复
热议问题