Instead of ... you should do

I'm trying to get there soonix, but I can't get the ball to drop:

git remote add origin git@gitlab.com:perlmonks/simbad2.git

strike 1

git remote add origin git@gitlab.com/tallharry66/simbad2.git

strike 2

git remote add origin git@gitlab.com/perlmonks/simbad3.git

Casey's back on the mound:

fritz@laptop:~/Documents/simbad3$ git init Initialized empty Git repository in /home/fritz/Documents/simbad3/.git +/ fritz@laptop:~/Documents/simbad3$ git add * fritz@laptop:~/Documents/simbad3$ git remote add origin git@gitlab.com +/perlmonks/simbad3.git fritz@laptop:~/Documents/simbad3$ git remote origin fritz@laptop:~/Documents/simbad3$ git remote -v origin git@gitlab.com/perlmonks/simbad3.git (fetch) origin git@gitlab.com/perlmonks/simbad3.git (push) fritz@laptop:~/Documents/simbad3$ ll total 20 drwxrwxr-x 3 fritz fritz 4096 Jan 2 01:26 ./ drwxr-xr-x 13 fritz fritz 4096 Jan 2 01:25 ../ -rwxrwxr-x 1 fritz fritz 257 Dec 31 21:38 1.simbad.pl* drwxrwxr-x 7 fritz fritz 4096 Jan 2 01:27 .git/ -rw-rw-r-- 1 fritz fritz 721 Jan 2 01:08 README.md fritz@laptop:~/Documents/simbad3$ git branch -M main error: refname refs/heads/master not found fatal: Branch rename failed fritz@laptop:~/Documents/simbad3$ git commit -m 'Initial project versi +on' [master (root-commit) c5706b8] Initial project version 2 files changed, 26 insertions(+) create mode 100755 1.simbad.pl create mode 100644 README.md fritz@laptop:~/Documents/simbad3$ git push -uf origin main error: src refspec main does not match any error: failed to push some refs to 'git@gitlab.com/perlmonks/simbad3.g +it' fritz@laptop:~/Documents/simbad3$

Busto again. I know I've lost it when I see:

fritz@laptop:~/Documents/simbad3$ git branch -M main error: refname refs/heads/master not found

Trying to understand this: git basics working with remotes

Just can't git her done....


In reply to Re^7: perl in the stars by Aldebaran
in thread perl in the stars by Aldebaran

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.