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

Android Opening a GitHub Project

Sina Maleki
Sina Maleki
6,135 Points

problem with share with github

Hi there after I try to "Share project on Github" I've got an "can't add remote remote github already exist..." error. although the repository was created in my Github dashboard but with out contain any code. I hope anyone can help me there Cheers!

1 Answer

It sounds like you're trying to create a project that already exists. What you want to do is push your code to github. If you use command line it'll be something like

cd into folder git add --all git commit -m 'Some commit message' git push origin master (this will depend on what your local branch is called)

You can do this using the built in tools that comes with android studio but I prefer the command line.

Sina Maleki
Sina Maleki
6,135 Points

Hi there When I try to Share project on Github I've got the error below.

Can't finish GitHub sharing process Successfully created project 'MyApplication' on GitHub, but initial commit failed: *** Please tell me who you are. Run git config --global user.email "you@example.com" git config --global user.name "Your Name" to set your account's default identity. Omit --global to set the identity only in this repository. fatal: empty ident name (for ) not allowed during executing git -c core.quotepath=false commit -m "Initial commit" --

best