Skip to content

Can anyone help me clone this repository? #1149

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

Closed
Dominic8999 opened this issue Aug 25, 2024 · 6 comments
Closed

Can anyone help me clone this repository? #1149

Dominic8999 opened this issue Aug 25, 2024 · 6 comments
Labels
good first issue Good for newcomers

Comments

@Dominic8999
Copy link

Dominic8999 commented Aug 25, 2024

I forked this repository and cloned it, but all files are deleted by default, and when I try to unstage the changes, I run into an error. I am new to contributing and I haven't encountered this before. Also, I tried to type the git command visible below "git restore --source=HEAD :/", but then I had to create two other commits which override commits written by others.
image

@Dominic8999 Dominic8999 added the good first issue Good for newcomers label Aug 25, 2024
Copy link

👋 @Dominic8999

Thanks for opening your first issue here! Be sure to follow the issue template!

@Dominic8999
Copy link
Author

I restored most of the files, however, 13 of them I can't restore ;-;

image

@behan05
Copy link

behan05 commented Aug 30, 2024

If files are missing after cloning, it's possible that the repository is configured in a way that causes this, or there might have been a mistake during the cloning process. Usually, cloning a repository should pull down all the files present at the current commit.

When you see files as "deleted" in your working directory, it's possible they are being tracked as deletions by Git. To unstage these changes, you can use: git restore --staged .
:)

@Dominic8999
Copy link
Author

If files are missing after cloning, it's possible that the repository is configured in a way that causes this, or there might have been a mistake during the cloning process. Usually, cloning a repository should pull down all the files present at the current commit.

When you see files as "deleted" in your working directory, it's possible they are being tracked as deletions by Git. To unstage these changes, you can use: git restore --staged . :)

So yeah, I tried to run this command, however, this just returns a bunch of errors.

@Dominic8999
Copy link
Author

This happens when I try to clone my forked repo using Github GUI version.

image

@shantnudon
Copy link

Share the platform that you are using. Like windows, linux or macOS

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

No branches or pull requests

4 participants