1

I am using codeigniter framework. I want to upload my project to github. I have username and password. In github i have a repository. I want to upload my project to that repository. I tried with git desktop. My system is 32-bit. So I tried with git bash using command promt. My project folder is on my desktop. I don't know how connect to that already existing repository to my local folder. I tried with lot of commands like

git init
git remote add origin https://github.com/yourusername/your-repo-name.git
git commit -m "adding files"

but my files are not upload to github. I am using codeigniter so, there are lot of files like applications, assets, Systems folder. I need to upload those folders with files. Please help me.

FreshD
  • 2,914
  • 2
  • 23
  • 34
user9456654
  • 61
  • 1
  • 7
  • What's the output of a git status after that git commit -m "adding files" ? Have you use the git push command to upload your file to Github? – JeuneApprenti Oct 04 '18 at 14:33
  • Possible duplicate of [How do I clone into a non-empty directory?](https://stackoverflow.com/questions/2411031/how-do-i-clone-into-a-non-empty-directory) – phd Oct 04 '18 at 15:42
  • https://stackoverflow.com/search?q=%5Bgit%5D+clone+non-empty – phd Oct 04 '18 at 15:42

2 Answers2

1

This is a very nice description how to add an existing project to github.

For your issue that files are not added:
What I could see from your trial you maybe forgot to use git add on the files you want to add. To be sure you could post the output of git status

FreshD
  • 2,914
  • 2
  • 23
  • 34
0

I guess what you want to do is to "download" the existing repository and then add files to it.

You should first clone your GitHub repository, and then add the files to it. After this, you can commit (and push) your files to the repo.

I recommend reading the Git basics: