программирование:git
Различия
Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слеваПредыдущая версия | |
программирование:git [2019.09.25 07:07] – feser | программирование:git [2019.09.25 07:10] (текущий) – feser |
---|
| |
==== переход от SVN к GIT ==== | ==== переход от SVN к GIT ==== |
<code - ~/.ssh/config> | <code - > |
git svn clone http://baza.hasnet/repos/chromos/ --authors-file=users.txt --no-metadata -s --username myname -r1:HEAD --ignore-paths='^(/branches/{1.x,2.4.x,3.0.x}|/other/{newMethodCalc}|/patches|/tags|/dopcalc)' | git svn clone http://baza.hasnet/repos/chromos/ --authors-file=users.txt --no-metadata -s --username myname -r1:HEAD --ignore-paths='^(/branches/{1.x,2.4.x,3.0.x}|/other/{newMethodCalc}|/patches|/tags|/dopcalc)' |
| </code> |
| |
| <code - dcch.bash> |
| #!/bin/bash |
| |
| if [ -z "$1" ] |
| then |
| echo "no name of dop calc" |
| exit |
| fi |
| |
| ssh root@192.168.1.4 "cd /mnt/dop/repositories/git; git --bare init $2.git; chown -R apache: $2.git; cp ./dcch01.git/category ./$2.git; echo '$3' > ./$2.git/description" |
| git svn clone http://feser@192.168.1.4/repos/chromos/dopcalc/$1 --authors-file=users.txt --no-metadata |
| cd $1 |
| git push http://feser@192.168.1.4/git/$2.git --all |
| |
</code> | </code> |
| |
программирование/git.1569395240.txt.gz · Последнее изменение: 2019.09.25 07:07 — feser