Upload a folder to github Git Bash

Asked 2 years ago, Updated 2 years ago, 42 views

I borrowed a book called Introduction to GitHub from the library to learn while making it.

I am asking you this question because there is something difficult to understand in this book or just search.

I want to upload a folder like the .github, build, dist, external, src, test folder at https://github.com/jquery/jquery but the folder does not go up

Suppose you have a remote repository portfolio, a local repository portfolio, and a folder BasicFiles in the local repositoryCotton

cd portfolio
git init
git add * //

I thought it would work if I did it like this I searched for add because it doesn't work, and I heard that add can only be a file.

How can I create a folder inside a remote repository?

github

2022-09-22 21:27

1 Answers

Cannot commit empty folder in git. Put one file in the folder and git add *. And if you push after git commit, the file will be on the github along with the folder.

You can also make it simple on the github homepage.


2022-09-22 21:27

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.