makersacademy / problem-solving

For problem-solving during the PreCourse
6 stars 2 forks source link

Git push error message #118

Closed ghost closed 7 years ago

ghost commented 7 years ago

Hello,

I've been stuck on this issue for a while and hoping someone will help. I'm trying to push some files to Git but I've been coming up with an error message whenever I try to do so. I can add and commit files to Git, but, when it comes to pushing them it won't let me. Here is what keeps coming up:

Chayyas-Macbook-Pro:chap01 syalc01$ git add README.md Chayyas-Macbook-Pro:chap01 syalc01$ git commit -a README.md fatal: Paths with -a does not make sense. Chayyas-Macbook-Pro:chap01 syalc01$ git commit -m README.md [master 11d2486] README.md 1 file changed, 2 insertions(+) create mode 100644 README.md Chayyas-Macbook-Pro:chap01 syalc01$ git git push origin git@github.com:chayyasyal/learn-to-program.git git: 'git' is not a git command. See 'git --help'.

Did you mean this? init Chayyas-Macbook-Pro:chap01 syalc01$ git push origin git@github.com:chayyasyal/learn-to-program.git error: src refspec git@github.com does not match any. error: failed to push some refs to 'git@github.com:chayyasyal/learn-to-program.git' Chayyas-Macbook-Pro:chap01 syalc01$

Thanks in advance, Chayya