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 trialJonathan Ankiewicz
17,901 PointsPosting to git from my desktop
How do I post a current project from my desktop to git? The video doesn't show you how to grab files
2 Answers
Kevin Korte
28,149 PointsTo post to git, from your desktop, just use the console to cd to the root of the directory, and than git init
, git add -A
, git commit -m "Init Commit"
To move the code to github, you'll need to set up a repo on github, and than add that repo as a remote using git remote add origin whatever-address-my-repo-is.git
and finally git push -u origin master
and now you'd see your git repo on on github too.
From here you'd just have to add, commit, push to update both your git repo and your github repo. git init
and git remote add
are only needed to set up once per project.
Kevin Korte
28,149 PointsIt should be asking for your github username and password, correct?
Jonathan Ankiewicz
17,901 PointsJonathan Ankiewicz
17,901 PointsThanks i got it last night, but i still couldn't figure out how to push it to my online account. I kept getting permission denied but I couldn't figure out how to give myself permissions to push it.
Jonathan Ankiewicz
17,901 PointsJonathan Ankiewicz
17,901 PointsThanks i got it last night, but i still couldn't figure out how to push it to my online account. I kept getting permission denied but I couldn't figure out how to give myself permissions to push it.