Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

Thx, hippo, I had gotten that far. I was able to find syntax help at gitlab help forum.

fritz@laptop:~/.ssh$ ssh -T git@gitlab.com Welcome to GitLab, @tallharry66! fritz@laptop:~/.ssh$

But I still can't get over the hump. I try to imitate what I remember doing with github, but I'm not getting through the usual command sequence:

cd existing_repo git remote add origin https://gitlab.com/perlmonks/betelgeuse.git git branch -M main git push -uf origin main

I am making progress:

fritz@laptop:~/Documents/gitlab1$ git init Initialized empty Git repository in /home/fritz/Documents/gitlab1/.git +/ fritz@laptop:~/Documents/gitlab1$ ll total 36 drwxrwxr-x 4 fritz fritz 4096 Dec 19 13:07 ./ drwxr-xr-x 10 fritz fritz 4096 Dec 17 16:47 ../ -rwxrwxr-x 1 fritz fritz 1122 Dec 17 00:34 1.betelgeuse.pl* -rwxrwxr-x 1 fritz fritz 1916 Dec 18 22:44 2.betelgeuse.pl* -rwxrwxr-x 1 fritz fritz 1890 Dec 18 22:38 2.betelgeuse.pl.bak* -rwxrwxr-x 1 fritz fritz 1783 Dec 18 23:57 3.betelgeuse.pl* -rwxrwxr-x 1 fritz fritz 1737 Dec 18 23:51 3.betelgeuse.pl.bak* drwxr-xr-x 2 fritz fritz 4096 Dec 15 21:44 conf_files/ drwxrwxr-x 7 fritz fritz 4096 Dec 19 13:07 .git/ fritz@laptop:~/Documents/gitlab1$ git remote add origin https://gitlab +.com/perlmonks/betelgeuse.git fritz@laptop:~/Documents/gitlab1$ git branch -M main error: refname refs/heads/master not found fatal: Branch rename failed fritz@laptop:~/Documents/gitlab1$ git push -uf origin main error: src refspec main does not match any error: failed to push some refs to 'https://gitlab.com/perlmonks/betel +geuse.git' fritz@laptop:~/Documents/gitlab1$

What am I missing now?

Other Git Resources

gitlab docs

git cheat sheet

Cheers,


In reply to Re^5: 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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2023-11-28 09:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?