1

I am using GitHub Desktop 0.7.0 on top of Windows 10 and trying to publish a WampServer project as a GitHub repository but after publishing the repository I am not seeing any including Files in neither Desktop GitHub or on my github.com.

Here is the steps I took to publish a repository called MapApp which is basically a simple website application.

1- I tried to add anew repository from GitHub Desktop File-> Add Local Repository... option.

enter image description here

enter image description here

2- Navaigated to the WampServer WWW folder

enter image description here

3- After Selecting MapApp Folder this dialog puped up

enter image description here

4- I clicked on Create A repository and this dialog box appeared

enter image description here

5- I just typed the Name of repository as MapApp and clicked on create repositoryand eventually I published the repository

enter image description here

But in both side of repository (Desktop Application/ Web) I am not seeing any of including files and folders! enter image description here

Here are the output of the Desktop and web views

enter image description here

enter image description here

sorry for taking too long but I tried to illustrated exactly what I did

JJ BOBO
  • 111
  • 11

1 Answers1

1

Creating and publishing are not enough to see the files published as well.

You need to add and commit them locally, before publishing (again) your repo (no need to re-create it though)

See "Committing and reviewing changes to your project"

https://help.github.com/assets/images/help/desktop/commit-all-win.png

And:

https://help.github.com/assets/images/help/desktop/commit-button-win.png

In command-line, you can:

cd /path/to/repo
git add .
git commit -m "first commit"

Then either publish, or git push.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Thanks for reply Vonc, but I am a little bit confused here. According to what you recommend on `You need to add and commit them locally` I am not seeing any Add functionality on Desktop Github! Can you please let me know how to do that? – JJ BOBO Jul 28 '17 at 07:13
  • @JJBOBO Whenever a GUI does not show what you expect, switch first to command-line. Try a git status. You will have a clearer view of the situation that way. – VonC Jul 28 '17 at 07:15
  • @JJBOBO Also see https://stackoverflow.com/a/38582467/6309 for seeing the publish button. – VonC Jul 28 '17 at 08:51
  • Thanks it is working now but only on repositry which comes from `C:\Users\me\Documents\GitHub` and when I try to add files to existing repository which explained how I create them above I am getting `C:\Wamp64\MapApp is't a git repository` error again the command line changes working for Git folder. But I need to keep track of any changes on Wampserver folder – JJ BOBO Jul 28 '17 at 13:27
  • You can try and create a repo in the right folder and try to import it in GitHub Desktop – VonC Jul 28 '17 at 13:29
  • The one where it says it is not a got repository, but where you need to follow file changes – VonC Jul 28 '17 at 13:32
  • As I said I need to set Wamp www folder as my repository folder. I saw your answer at this post `https://stackoverflow.com/questions/22953060/can-i-combine-my-local-github-repository-with-wamp-localhost-folder` and it make more sence to me now – JJ BOBO Jul 28 '17 at 13:37
  • OK, got it now. – VonC Jul 28 '17 at 13:38
  • so you think I have to `be in the Github folder, but mention that the working tree is www` – JJ BOBO Jul 28 '17 at 13:38
  • Thanks a lost VonC, it was very helful – JJ BOBO Jul 28 '17 at 13:40