Git showing lots of changes and untracked files after checkout -


so i'm on branch, let's call feature/pro-10 , want switch branch check state of piece of code. git stash stash changes , git checkout bugfix/pro-13 go branch want @ code on. finish want on branch (without making changes) , git checkout feature/pro-10 branch developing on. i'm git stash pop wait! there's behemoth of modified , untracked files along other changes.

how did turn up? never did sort of merge. may have done git pull up-to-date bugfix/pro-13 don't see why make loads of changes follow me original branch.

the worst thing i'll git stash pop before doing git status, meaning i'll have original changes mixed in other gumph seemingly came out of nowhere.

where these changes coming , safe rid of?

when git checkout, git tries delete things don't exist in destination branch. if you've got virus scanner running, it'll leave them behind or prompt you. if you're confident have either stashed or committed, can git reset --hard rid of these abandoned files. careful though says "revert local changes without warning" make sure that's wanted do.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -