OSC versus GIT (Gegenüberstellung altes und neues Paketbauverfahren bei openSUSE)

Nachdem openSUSE vom alten, bewährten und super Tool OSC und OBS zu GIT und GITEA wechselt, soll das hier eine Gegenüberstelluinge der beiden Varianten sein.

OSC GIT
https://build.opensuse.org/ https://src.opensuse.org/
- osc co
   Änderungen durchführen
- osc build
- osc commit
- osc sr
- git clone https://src.opensuse.org/java-packages/jameica.git
- git checkout main
   Änderungen durchführen
- Evtl. git obs meta pull
- osc build oder osc build --alternative-project openSUSE:Leap:16.0
- git add .
- git commit -a -m "Update to x.y.z"
- git pull -r && git push
- osc sr Java:packages jameica openSUSE:Factory

 

TODO: 
osc build --alternative-project openSUSE:Leap:16.0

 

Ohne ssh-agent:

Richard Rahl und Christian Boltz hatten einen anderen Weg gepostet, damit es auch ohne ssh-agent funktioniert

Fügen Sie dies zu Ihrer ~/.ssh/config hinzu:

   Host src.opensuse.org

      User gitea

      IdentityFile ~/.ssh/id_src.opensuse.org

Ersetzen Sie natürlich ~/.ssh/id_src.opensuse.org durch den tatsächlichen Namen von Ihrer SSH-ID-Schlüsseldatei!

 

ssh-agent mit eigenem benahmsten key nutzen. Bei mir opensuse

I can probably also explain why ssh-agent seems to be needed in your 
case (unless you add the above config to ~/.ssh/config).

 

By default, ssh only uses the "usual" key filenames like id_rsa, id_ecdsa 
or id_ed25519 (generally: id_$algorythm)
However, you have a key with non-default filename id_src.opensuse.org.
If you want ssh to use that key, you can
- use   ssh -i ~/.ssh/id_src.opensuse.org gitea@src.opensuse.org
- add the above config sniplet to ~/.ssh/config which basically adds
  "-i ~/.ssh/id_src.opensuse.org" and "getea@" automatically whenever 
  you   ssh src.opensuse.org
- or you explicitely load that key into your ssh-agent ?