Github: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 15: | Zeile 15: | ||
*git remote add origin git@github.com:doktor-xinux/localwiki.git | *git remote add origin git@github.com:doktor-xinux/localwiki.git | ||
*git branch -M main | *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 | *git push -u origin main | ||
Version vom 15. Juni 2022, 14:31 Uhr
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