d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Github Help
Add Reply New Topic New Poll
Member
Posts: 16,404
Joined: Mar 28 2009
Gold: 7.69
Aug 6 2015 07:36pm
I am trying to get a html file from my desktop onto my github using the windows command prompt.

I've followed a few tutorials but I keep reaching dead ends in terms of getting errors every time.

Can someone break it down barney style (be as explicit as possible) to try and explain the steps I need to take to commit a directory?

What I've been doing is:


git init
git commit -m "first commit"
git remote add origin https://github.com/JAFloretta/audioeng.git
git push -u origin master

As well as:

git remote add origin https://github.com/JAFloretta/audioeng.git
git push -u origin master

I seem to not be doing something right.


The most common error I run into is: (after I try git push -u origin master)



This post was edited by Shakti on Aug 6 2015 07:41pm
Member
Posts: 11,610
Joined: Oct 28 2008
Gold: 1,795.00
Aug 6 2015 11:56pm
git config --global user.name "JAFloretta"
git config --global user.email "user@domain.com"
git init
git add file.html
git commit -m "first commit"
git remote add origin https://github.com/JAFloretta/audioeng.git
git push -u origin master
Member
Posts: 29,197
Joined: Feb 5 2007
Gold: 4,000.18
Aug 25 2015 03:49pm
I strongly suggest you get SourceTree. It's GUI based, and very good for starters.
Member
Posts: 5,167
Joined: Nov 23 2006
Gold: 11.01
Sep 4 2015 01:10pm
GIT is a pain in the ass to learn the commands initially but it's worth the struggle. Relying on a GUI sucks. I've been using a GUI for a year and finally forced myself to actually LEARN what it's doing.
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll