Git: Unterschied zwischen den Versionen
Aus Vosp.info
F (Diskussion | Beiträge) |
F (Diskussion | Beiträge) |
||
Zeile 3: | Zeile 3: | ||
cd neurepository.git | cd neurepository.git | ||
git --bare init | git --bare init | ||
+ | ''Initialized empty Git repository in /var/www/git/neurepository.git/'' | ||
== 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 | ||
+ | ''Cloning into 'neurepository'...'' | ||
+ | ''warning: You appear to have cloned an empty repository.'' | ||
echo README > README | echo README > README | ||
git add README | git add README | ||
git commit -a -m 'README' | git commit -a -m 'README' | ||
+ | ''[master (root-commit) 7301f81] README'' | ||
+ | ''1 file changed, 1 insertion(+)'' | ||
+ | ''create mode 100644 README'' | ||
git push origin master # muss auf jeden Fall beim leeren bare Repository gemacht werden | git push origin master # muss auf jeden Fall beim leeren bare Repository gemacht werden | ||
Zeile 23: | Zeile 29: | ||
error: unpack failed: unpack-objects abnormal exit | error: unpack failed: unpack-objects abnormal exit | ||
+ | === error: failed to push some refs to 'git+ssh://user@1.2.3.4:22/var/www/git/neurepository.git' === | ||
+ | git push | ||
+ | ''No refs in common and none specified; doing nothing.'' | ||
+ | ''Perhaps you should specify a branch such as 'master'.'' | ||
+ | ''fatal: The remote end hung up unexpectedly'' | ||
+ | ''error: failed to push some refs to 'git+ssh://user@1.2.3.4:22/var/www/git/neurepository.git''' | ||
Version vom 15. Februar 2013, 16:35 Uhr
Inhaltsverzeichnis
repository anlegen
mkdir neurepository.git cd neurepository.git git --bare init Initialized empty Git repository in /var/www/git/neurepository.git/
repository holen
git clone git+ssh://user@1.2.3.4:22/var/www/git/neurepository.git Cloning into 'neurepository'... warning: You appear to have cloned an empty repository.
echo README > README git add README git commit -a -m 'README' [master (root-commit) 7301f81] README 1 file changed, 1 insertion(+) create mode 100644 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
error: failed to push some refs to 'git+ssh://user@1.2.3.4:22/var/www/git/neurepository.git'
git push No refs in common and none specified; doing nothing. Perhaps you should specify a branch such as 'master'. fatal: The remote end hung up unexpectedly error: failed to push some refs to 'git+ssh://user@1.2.3.4:22/var/www/git/neurepository.git'
notizen
echo README > README git add README git commit -a -m 'README' git log git branch