Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^6: perl in the stars

by soonix (Canon)
on Dec 20, 2022 at 09:59 UTC ( [id://11148988]=note: print w/replies, xml ) Need Help??


in reply to Re^5: perl in the stars
in thread perl in the stars

Instead of
git remote add origin https://gitlab.com/perlmonks/betelgeuse.git
you should do
git remote add origin git@gitlab.com:perlmonks/betelgeuse.git
Although this URL doesn't mention ssh, it will use it.

Replies are listed 'Best First'.
Re^7: perl in the stars
by Aldebaran (Curate) on Jan 02, 2023 at 08:46 UTC
    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....

      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$

      From this you are trying to push a branch called "main" which doesn't exist. Your branch is called "master" - push that instead.

      It is still unlikely to work because your remote URL looks wrong (it has no colon).


      🦛

        It is still unlikely to work because your remote URL looks wrong (it has no colon).

        Du hast ein ganz genaues Auge, hippo.

        From this you are trying to push a branch called "main" which doesn't exist. Your branch is called "master" - push that instead.

        Auch notwendig. Ich finde englishes Markup gar verwirrend.

        git push -uf origin master

        Der Lange hat den Ball nach 37 Versagen. Kann er nun mit deutscher Anweisung das Ziel reichen?

        fritz@laptop:~/Documents/simbad3$ ll total 16 drwxrwxr-x 2 fritz fritz 4096 Jan 2 16:14 ./ drwxr-xr-x 13 fritz fritz 4096 Jan 2 01:25 ../ -rwxrwxr-x 1 fritz fritz 257 Dec 31 21:38 1.simbad.pl* -rw-rw-r-- 1 fritz fritz 780 Jan 2 16:17 README.md fritz@laptop:~/Documents/simbad3$ pwd /home/fritz/Documents/simbad3 fritz@laptop:~/Documents/simbad3$ echo "starting fresh after rm -rf .g +it" starting fresh after rm -rf .git 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 commit -m 'Initial project versi +on' [master (root-commit) eec2009] Initial project version 2 files changed, 27 insertions(+) create mode 100755 1.simbad.pl create mode 100644 README.md 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$ git push -uf origin master Enumerating objects: 4, done. Counting objects: 100% (4/4), done. Delta compression using up to 4 threads Compressing objects: 100% (4/4), done. Writing objects: 100% (4/4), 667 bytes | 111.00 KiB/s, done. Total 4 (delta 0), reused 0 (delta 0) remote: remote: To create a merge request for master, visit: remote: https://gitlab.com/perlmonks/simbad3/-/merge_requests/new?me +rge_request%5Bsource_branch%5D=master remote: To gitlab.com:perlmonks/simbad3.git * [new branch] master -> master Branch 'master' set up to track remote branch 'master' from 'origin'. fritz@laptop:~/Documents/simbad3$

        Tor...Tor...Tor

        Dem Tor ist es beim 38sten Versuch erlungen!

        Thank you for helping me fail to fail: simbad3/-/tree/master

        Gruss aus Amiland,

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11148988]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-03-28 13:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found