Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Cannot add repo to github using desktop application

Hi guys,

I am trying to add a repo to github using the github desktop application. However, when I attempt to do this and I select the add button and choose the location of the folder it never shows me any of the files within that folder. I have been having a ton of issues with github in general lately. It hasn't been saving my commits and has just been acting weird since yesterday. Has anyone else had any issues or does anyone have any suggestions?

Thank you, Brandon

Garrett Sanderson
Garrett Sanderson
12,735 Points

I haven't had any issues, are you on the mac client or pc?

I was on a mac. It was kind of strange. I used command line for the time being and then the desktop application started working again. Thank you for the response by the way. i appreciate it.

3 Answers

I suggest you to use console (command line) to upload your project on Github:

  1. Initialize your local repo using git init
  2. Prepare all files for commit git add .
  3. Commit your project git commit -m "first commit"
  4. Create repo on Github
  5. Link your repo with Github git remote add origin https://github.com/Your_nickname/Your_repo.git
  6. Push your local commit to Github git push -u origin master

This ended up working without an issue. Thank you so much for your help. I really appreciate it.

-

-