Use the commands below. These commands will remove all untracked files from local git too
Reset local repository branch to be just like remote repository HEAD
git fetch origin git reset --hard origin/master git clean -d -f
本地仓库和远程仓库保持一致,Reset local repository branch to be just like remote repository HEAD
评论 (0)