Git: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
F (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
F (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 3: | Zeile 3: | ||
cd neurepository.git | cd neurepository.git | ||
git --bare init | git --bare init | ||
== repository holen == | == repository holen == | ||
git clone git+ssh://user@1.2.3.4:22/var/www/git/neurepository.git | git clone git+ssh://user@1.2.3.4:22/var/www/git/neurepository.git | ||
echo README > README | |||
git add README | |||
git commit -a -m 'README' | |||
git push origin master # muss auf jeden Fall beim leeren bare Repository gemacht werden | |||
== Fehlermeldungen == | |||
=== error: insufficient permission for adding an object to repository database ./objects === | |||
git push origin master | |||
error: insufficient permission for adding an object to repository database ./objects | |||
fatal: failed to write object | |||
error: unpack failed: unpack-objects abnormal exit | |||
== notizen == | |||
echo README > README | |||
git add README | |||
git commit -a -m 'README' | |||
git log | |||
git branch | |||
== Quellen == | == Quellen == | ||
* [http://wiki.weinimo.de/Git-Hilfen Git-Hilfen - deutsch] | * [http://wiki.weinimo.de/Git-Hilfen Git-Hilfen - deutsch] | ||
Version vom 15. Februar 2013, 16:29 Uhr
repository anlegen
mkdir neurepository.git cd neurepository.git git --bare init
repository holen
git clone git+ssh://user@1.2.3.4:22/var/www/git/neurepository.git
echo README > README git add README git commit -a -m 'README' git push origin master # muss auf jeden Fall beim leeren bare Repository gemacht werden
Fehlermeldungen
error: insufficient permission for adding an object to repository database ./objects
git push origin master
error: insufficient permission for adding an object to repository database ./objects fatal: failed to write object error: unpack failed: unpack-objects abnormal exit
notizen
echo README > README git add README git commit -a -m 'README' git log git branch