On 12/19/2016 06:04 PM, John McKown wrote:
> On Mon, Dec 19, 2016 at 10:43 AM, Pablo Rodríguez wrote:
> [...]
>     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?
> 
> ​If I understand you correctly, you want to delete the gh-pages branch
> from "origin" which you accidentally got via a "git fetch"?​

Many thanks for your reply, John,

Sorry, I’m afraid I haven’t explained myself acurately.

Maybe the steps and a final question would be clearer:

    1. git pull origin gh-pages
        (I ignored that I was pulling to my local master branch.)
    2. I left commit comment empty, so no commit was done.
    3. git reset HEAD
        (I wanted to unstage the fetched files.)

Are the fetched files somewhere 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to