Such a task is the file index.php. It needs to be uploaded to github in the previously created repository myaccount / index.git, what should be the sequence of commands?
|
1 answer
git remote add origin git@github.com:myaccount/index.git git add index.php git commit -am "initial commit" git push origin master
In general, you need to read " Pro Git ".
- crashes on the last command: Permission denied (publickey). fatal: The remote end hung up unexpectedly used to help ssh-add, but in this case for some reason not - deniz
- fiveDo I chew and swallow for you? You need an ssh key to add an account on your Github. I added a link down there, so go through it, read a couple of first chapters at least. - AlexDenisov
- Thanks for the tip) - deniz
|