简体   繁体   中英

How to remove file paths from github files in my repository?

I'm new to github. I'm trying to host my project on github pages but my file was added as Desktop/app instead of directly pushing the actual project files(index.html, etc.) to the repository. It looks like this:

http://imgur.com/2Z7UMjR

I don't want the files to be in a desktop/app folder. Thanks.

It seems you have cloned your project at Desktop/app . If you don't want this repo, you can to delete from your GitHub account. Check this Link Deleting Git Repo

Try to make new one -

Go to the folder where you want have stored your project, and clone the new repository: Create GitHub Repo

$git clone https://github.com/user_name/repository_name.git
$git add --all
$git commit -m "Your commit msg"
$git push -u origin master

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM