GIT/start4: различия между версиями
(Заготовка статьи) |
(нет различий)
|
Текущая версия от 08:59, 16 апреля 2016
Пример создания репозитария с нуля.
0. Настраиваем свой клиент SSH для упрощения работы с git.alt и gitery.alt.
1. Создаём в gitery новый (пустой) репозитарий и копию у себя
$ ssh gitery init-db public/gtools.git gitery-init-db: /people/grumbler/public/gtools.git $ git clone ssh://gitery/people/grumbler/public/gtools.git Cloning into 'gtools'... warning: You appear to have cloned an empty repository. Checking connectivity... done.
2. Добавляем файлы
$ cd gtools $ cp ~/src/gtools/* ./ $ git add * $ git commit -m "Release 1.0" [master (root-commit) 9898cd0] Release 1.0 15 file changed, 0 insertions(+), 0 deletions(-) ...
3. Отправляем в gitery.alt
$ git push --all ... To ssh://gitery/people/grumbler/public/gtools.git * [new branch] master -> master