GIT remote

  1. Git init in a new directory
  2. Looking for the ssh access on the Github Website of your repository
  3. git remote add origin git@github.com:<your repro>
  4. copy ssh key to ~/.ssh into id_rsa
  5. change rights to 400 of the ~/.ssh/id_rsa
  6. Getting the existing files locally:
    git clone -b <branch> git@github.com:<user>/<git repro>
  7. Now adding some files using git add *
  8. git commit -m „message to use“
  9. Finally git push -u origin master and provide the password of the ssh key
  10. Done

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert