code:git
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| code:git [2020/04/09 21:55] – created michfiel | code:git [2020/04/13 16:06] (current) – michfiel | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| [[https:// | [[https:// | ||
| ]] | ]] | ||
| + | |||
| + | Leeres Repository anlegen: | ||
| + | < | ||
| + | cd / | ||
| + | git init | ||
| + | Initialized empty Git repository in / | ||
| + | </ | ||
| + | |||
| + | Dateien zu diesem Repository hinzufügen: | ||
| + | git add * | ||
| + | |||
| + | Änderungen lokal speichern: | ||
| + | git commit -m "First Commit" | ||
| + | |||
| + | Lokal temporäres Repository erstellen: | ||
| + | git clone --bare .git 12decode.git | ||
| + | Cloning into bare repository ' | ||
| + | done. | ||
| + | |||
| + | Neues Repository auf Server hochladen: | ||
| + | scp -r 12decode.git fiasko@kudu.in-berlin.de:/ | ||
| + | |||
| + | Lokales Git Repository löschen: | ||
| + | rm -rf 12decode.git | ||
| + | |||
| + | Remote-Repository verbinden: | ||
| + | git remote add origin ssh:// | ||
| + | |||
| + | Eventuell schon vorhandene Verbindung aufheben: | ||
| + | git remote rm origin | ||
| + | |||
| + | Änderungen vom lokalen ins Server-Repository hochladen: | ||
| + | git push origin master | ||
| + | |||
| + | Cloning a repository | ||
| + | |||
| + | git clone ssh:// | ||
| + | |||
| + | cd / | ||
| + | git commit | ||
| + | git push origin master | ||
| + | Everything up-to-date | ||
| + | |||
| + | |||
| + | |||
| + | |||
code/git.1586462133.txt.gz · Last modified: by michfiel
