visual studio - "git checkout" Doesn't Update Files -



visual studio - "git checkout" Doesn't Update Files -

my workflow git this: 1. pull --rebase origin/master 2. create new branch specific issue , create changes on branch 3. switch head master , merge new branch i've created to master

from documentation page, git checkout suppose to

updates files in working tree match version in index or specified tree

however after made changes new branch , checkout master , check status using 'git status', changed files still present.

worst of all, have used 'undo file changes' alternative in git extension visual studio, if switch branch created using 'checkout' command, no longer see changes. there anyway can redo changes?

before "checkout master", sure committing files in branch working on?

make sure commit files in branch working on. otherwise, if git discards changed files, you'll have lost them ever.

if not want commit files yet, seek looking @ git stash. git stash allows temporarily save changes, without committing them branch.

visual-studio git-extensions git-checkout

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

How do you set up a perforce server to work over the internet? -

ios - Lagging ScrollView with UIWebview inside -