Skip to content

Forking & Branching instructions on Git bootcamp and cheat sheet page #1375

Closed
@kevinbowen777

Description

@kevinbowen777

Hello,
I am in the process of working through the initial steps on the Git bootcamp and cheat sheet for the first time.
I am wondering if I am doing something incorrectly or, if there are some steps
missing that could use clarification.

In the "Forking CPython GitHub repository" section, should there be a note to
uncheck the "Copy the main branch only" check box in the GitHub forking dialogue?

If one leaves the box checked, then in the "Creating and switching branches"
section, when one issues the command git branch -a, no remote branches are
visible.

If the box is unchecked in the initial forking section, then the remote branches are
visible. For example:

* main
  remotes/origin/3.10
  remotes/origin/3.11
  remotes/origin/3.12
  <snip>
  ...

Would this also require changing the command in the same branch section from
git switch -c 3.12 upstream/3.12
to
git switch -c 3.12 remotes/origin/3.12?

Or, is there a step missing that would allow one to use the original git switch
command with upstream/3.12 as the start point?

Please let me know if you need additional information. If I am not wrong in my assumptions, I would be glad to help update the documentation.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions