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