[git-users] effect of git checkout master on master branch

2014-02-28 Thread dexter ietf
i'm already on master branch, what's the effect of running the 'git checkout master' while on master branch ? thanks -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send

Re: [git-users] effect of git checkout master on master branch

2014-02-28 Thread Daniel Hunsaker
All that will happen is that any changes you've made to files git is tracking in the current commit will be reverted. New files will be left intact, as will ignored ones, but deleted files will be restored. Basically, checkout does its best to get you to the exact state described in the commit yo

Re: [git-users] effect of git checkout master on master branch

2014-02-28 Thread Gunnar Strand
On 02/28/14 09:41, Daniel Hunsaker wrote: All that will happen is that any changes you've made to files git is tracking in the current commit will be reverted. New files will be left intact, as will ignored ones, but deleted files will be restored. Basically, checkout does its best to get yo

Re: [git-users] effect of git checkout master on master branch

2014-02-28 Thread John McKown
Output from a fast check: === $ echo " " >>cmfcpu15.sh $ git status On branch master Your branch is up-to-date with 'origin/master'. Changes not staged for commit: (use "git add ..." to update what will be committed) (use "git checkout -- ..." to discard changes in working directory)