GIT: The following untracked working tree files would be overwritten by checkout

前端 未结 1 1568
隐瞒了意图╮
隐瞒了意图╮ 2020-12-03 15:04

I have two branches one is called master the other is called dev I am currently in the master branch and I want to go to the dev branch to move a file to the development ser

相关标签:
1条回答
  • 2020-12-03 15:23

    First you'll want to add the files in question so that they're tracked by Git (you don't have to commit any changes, but Git needs to know about the files):

    git add pages/memclub/images/subheaders/leadership.png pages/memclub/images/subheaders/male.png 
    git add pages/memclub/images/subheaders/marketing.png pages/memclub/images/subheaders/training.png
    

    Then you can stash your changes:

    git stash 
    

    When you're ready to start working on the files again, you can use:

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