On 12/20/2016 08:04 AM, Konstantin Khomoutov wrote: > On Mon, 19 Dec 2016 17:43:18 +0100 Pablo Rodríguez wrote: > >> I have a local repository and a remote at GitHub. My local repo had a >> master branch and the remote had only a gh-pages branch. >> >> I wanted to pull from my gh-pages remote branch (with "git pull origin >> gh-pages"). I was about to commit on the master branch and I realized >> I had no local gh-pages branch. So I put a blank message, to avoid >> commiting to the master branch. >> >> I unstaged the changes with "git reset HEAD", but how can I remove the >> already fetched files. I mean, is there something I have to do after >> unstaging the fetched files? > > I'm not sure I understood the course of actions but can you elaborate > on your current situation? Precisely, when you "unstaged the changes" > -- are those "extraneous" files you asking about now untracked or > tracked with unstaged changes? > > Copying an pasting the output of running > > git status > > would help immensely.
Many thanks for your reply, Konstantin. This is what I get: $ git status On branch master Your branch is up-to-date with 'origin/master'. Untracked files: (use "git add <file>..." to include in what will be committed) Cousine-Bold.ttf Cousine-BoldItalic.ttf Cousine-Italic.ttf Cousine-Regular.ttf website/ nothing added to commit but untracked files present (use "git add" to track) I guess the files are untracked. BTW, unstaging head doesn’t mean untracking files that were stagged for next commit? But are the files somehow in my local master branch? Many thanks for your help, Pablo -- http://www.ousia.tk -- 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 an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.