how to remove untracked files in Git?

后端 未结 8 1008
鱼传尺愫
鱼传尺愫 2020-12-22 15:22

I\'m working on a branch, say \"experimental\" branch which I branch out from my master branch.Then, I generate a user model in experimental branch, but does not add them to

8条回答
  •  南方客
    南方客 (楼主)
    2020-12-22 16:02

    Well, I had the similar issue. I had taken latest but there were some changes in the local due to which the merge was not happening to a particular file. The file was untracked and I did not want them so What I did was -

    $ git checkout filepath/filename

    filepath - The location from where I did the git bash. then when I took the latest the changes were available

提交回复
热议问题