On Sat, Apr 22, 2023 at 7:53 AM Uwe Brauer <o...@mat.ucm.es> wrote:

> I pulled for a remote server and obtained
>
> * commit b7007223bd7c99b9d92911c66411b2143a791ce4 (master) (origin/master, 
> origin/HEAD, master)
> | Author: John Ciolfi <cio...@ah-ciolfi620-l.dhcp.mathworks.com>
> | Date:   Mon Apr 10 16:05:31 2023 -0400
> |
> |     matlab and org mode example
> |
>
>
> So I wanted to create a new branch org-mode so that this commit should
> be in the new branch and later add other commits to that branch.
>
> So I run
>
> git branch org-mode
> git checkout master
> git reset --hard HEAD~1
> git checkout org-mode
> git push -u origin org-mode

You pushed the "org-mode" branch, but you changed the "master" branch,
and you didn't push it.

> * commit b7007223bd7c99b9d92911c66411b2143a791ce4 (master) (origin/master, 
> origin/HEAD, master)
> | Author: John Ciolfi <cio...@ah-ciolfi620-l.dhcp.mathworks.com>
> | Date:   Mon Apr 10 16:05:31 2023 -0400
> |
> |     matlab and org mode example
> |
>
> So commit b7000 belongs to master not to org-mode as I hoped, what did I
> miss?

You changed the "master" branch locally, but you didn't update it on
the remote repository.

-- 
Felipe Contreras

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/CAMP44s3na%2BUBthjPNSx2xuuUzDYkAWn-doHS-M8iAwZ9_7QQ1w%40mail.gmail.com.

Reply via email to