I am trying to contribute to open-source projects.
I started with this one >>> Contribute to this github repo.[First Time Contributors]. And that was fine.
So then I decided to try a " real" one with FCC >>> https://github.com/freeCodeCamp/freeCodeCamp/issues/38005
I got as far as these steps:
- Fork repo into own github account
- Clone to local machine using cmd line:
git clone https://github.com/SabahatPK/freeCodeCamp.git
- I cloned it into the same larger folder that I cloned the first open-source contribution repo:
So now this is what it looks like in Explorer:
- So once the clone finished I noticed some strange messages:
Checking out files: 100% (9374/9374), done. fatal: unable to checkout working tree warning: Clone succeeded, but checkout failed. You can inspect what was checked out with 'git status' and retry the checkout with 'git checkout -f HEAD'
git statusto see what was up:
On branch 'myCard' No commits yet Untracked files: (use "git add <file>..." to include in what will be committed) Contribute-101/ freeCodeCamp/ nothing added to commit but untracked files present (use "git add" to track)
My question is - why am i not on master branch…
myCard is the branch I created for the first open-source repo…how did it get mixed up here…? And how can I fix this…? I’ve tried moving to master branch…or unchecking out myCard branch…but (a) I don’t really know what I’m doing and (b) nothing happened.