Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+19 votes

I cloned into my personal fork and cannot get into the main fork. How do I get it back to main fork? I

asked in CSC305 Fall 2022 by (1 point)

1 Answer

+9 votes

1) "main" refers to the main "branch" within a repo, not to any particular repo. Your local repo would have a "main" branch, and so would the remote team repo up on GitHub, and so would your remote fork of the team repo.

2) to check WHICH remote repo your local is connected to, try:

 git remote -v

If that URL points to your personal fork

https://github.com/Fkhan684/CurlewRepo.git

Then you should run these two commands, to change it so that you are connecting to push/pull to/from the team's repo, instead of to your fork.

 git remote remove origin
 git remote add origin https://github.com/AugustanaCSC305Fall22/CurlewRepo.git

Hope that helps!

answered by (1.9k points)
...