Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to checkout branches #7

Open
DKB08 opened this issue Dec 13, 2022 · 5 comments
Open

Unable to checkout branches #7

DKB08 opened this issue Dec 13, 2022 · 5 comments

Comments

@DKB08
Copy link

DKB08 commented Dec 13, 2022

When I fork this and clone it locally I am unable to checkout the other branches. When I clone it directly from here without forking, I am able to checkout the other branches.

@dobell733
Copy link

dobell733 commented Dec 24, 2022

I had the same issue as well

@regexrekt
Copy link

regexrekt commented Jan 4, 2023

The following steps worked for me:

From Codecademy's repo page

  1. Select fork
  2. Uncheck the option to 'copy the main branch only' before creating the fork

From terminal

  1. cd into local project path
  2. create clone from the forked repo

git clone https://github.com/yourUsername/practice-rebase-off-platform-project.git project_name

  1. cd into your cloned repo (you can then use the -a flag optionally to view all branches)

git branch -a

  1. checkout the main, part_1_Monday and part_2_Monday branches

git checkout main
git checkout part_1_Monday
git checkout part_2_Monday
git branch

That said, I am not sure if this is the correct approach altogether. Any advice/feedback on this would be much appreciated!

@DKB08
Copy link
Author

DKB08 commented Jan 5, 2023

Thanks, @regexrekt !

@evascroll
Copy link

The following steps worked for me:

From Codecademy's repo page

  1. Select fork
  2. Uncheck the option to 'copy the main branch only' before creating the fork

From terminal

  1. cd into local project path
  2. create clone from the forked repo

git clone https://github.com/yourUsername/practice-rebase-off-platform-project.git project_name

  1. cd into your cloned repo (you can then use the -a flag optionally to view all branches)

git branch -a

  1. checkout the main, part_1_Monday and part_2_Monday branches

git checkout main
git checkout part_1_Monday
git checkout part_2_Monday
git branch

That said, I am not sure if this is the correct approach altogether. Any advice/feedback on this would be much appreciated!

thanks! it work for me! just in the select fork dropdown select the create a new fork option there uncheck the option "copy the main branch only"

@Yonahv
Copy link

Yonahv commented May 29, 2023

Yup. Same issue. Codecademy did not specify to uncheck the 'copy the main branch only' in the tutorial.
Uncheck it and your good to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants