I am trying to setup a new repository on my existing GitHub account.
I followed the steps circled here:
When I run the command git push -u origin master, I get the following error:
error: unknown switch `u'
Any ideas as to the issue? Doing a Google search for this error didn't seem to cough-up anything useful.
It seems your git client is too old. Try to update it to most recent version: http://git-scm.com/
Ignore the error: unknown switch `u'
Try what they say here, http://help.github.com/create-a-repo/
$ git push origin master
I believe that this:
$ git push -u origin master
...is equivalent to:
$ git push origin master
$ git config --add branch.master.remote origin
$ git config --add branch.master.merge refs/heads/master
So if you're running an older version of Git that doesn't support -u
for git push
, run that group of 3 commands instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With