Github: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „=Test= *ssh -T git@github.com Hi doktor-xinux! You've successfully authenticated, but GitHub does not provide shell access.“) |
|||
| (2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
| + | =Wichtig= | ||
| + | '''Projekt muss vorher bei Github angelegt werden''' | ||
=Test= | =Test= | ||
*ssh -T git@github.com | *ssh -T git@github.com | ||
Hi doktor-xinux! You've successfully authenticated, but GitHub does not provide shell access. | Hi doktor-xinux! You've successfully authenticated, but GitHub does not provide shell access. | ||
| + | =Projekt Seite= | ||
| + | git@github.com:doktor-xinux/localwiki.git | ||
| + | =Beispiel neues Projekt= | ||
| + | *echo "# localwiki" >> README.md | ||
| + | *git init | ||
| + | *git add README.md | ||
| + | *git commit -m "first commit" | ||
| + | *git branch -M main | ||
| + | *git remote add origin git@github.com:doktor-xinux/localwiki.git | ||
| + | *git push -u origin main | ||
| + | =oder exsistierendes Projekt pushen= | ||
| + | *git remote add origin git@github.com:doktor-xinux/localwiki.git | ||
| + | *git branch -M main | ||
| + | *git push -u origin main | ||
| + | =Projekt ändern und pushen= | ||
| + | *git add . | ||
| + | *git commit -m "second commit" | ||
| + | *git push -u origin main | ||
Aktuelle Version vom 15. März 2025, 17:37 Uhr
Wichtig
Projekt muss vorher bei Github angelegt werden
Test
- ssh -T git@github.com
Hi doktor-xinux! You've successfully authenticated, but GitHub does not provide shell access.
Projekt Seite
git@github.com:doktor-xinux/localwiki.git
Beispiel neues Projekt
- echo "# localwiki" >> README.md
- git init
- git add README.md
- git commit -m "first commit"
- git branch -M main
- git remote add origin git@github.com:doktor-xinux/localwiki.git
- git push -u origin main
oder exsistierendes Projekt pushen
- git remote add origin git@github.com:doktor-xinux/localwiki.git
- git branch -M main
- git push -u origin main
Projekt ändern und pushen
- git add .
- git commit -m "second commit"
- git push -u origin main