Rusty with GIT

Hi guys,

I did not use git for more than a year now.
So I need to review again.
Thus just rusty with it.

Here is my little problem.

On my github.com I created a repository project1.
On my desktop I also created a repository proejct1

I tried this command below,


git remote add origin https://github.com/iridion9/project1.git
git push -u origin master

But an error message show up.


fatal: 'origin' doesn't appear to be a git repostory
fatal: could not read from remote repository

So what is wrong?
Any help pls.

Thanks

I followed this tutorial over and over again but it doesn’t work,

~sigh…

Any tutorial that works?

Hi guys,

I’m using Git Shell.
Is Git Shell and git Bash the same?
Maybe this is the root of the problem?

I’m fairly certain you can’t push to https:// with git, but only read from it. The only thing you can write to is SSH as far as I know.

Try


git remote remove origin

and then


git remote add origin git@github.com:iridion9/project1.git

And then try pushing again (git push -u origin master)

ScallioXTX ;

Thanks, but I think I already figured it out.
The reason it did not work, because I’m using Git Shell.
I tried Git Bash and now it’s working…

ScallioXTX ;
Your post also helped dude.
Thanks.