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....