programmirovanie:git
Различия
Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слеваПредыдущая версия | |
programmirovanie:git [2025.06.17 09:26] – feser | programmirovanie:git [2025.06.23 06:05] (текущий) – feser |
---|
</code> | </code> |
| |
==== переход от SVN к GIT ==== | |
<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)' | |
</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> | |
| |
programmirovanie/git.txt · Последнее изменение: — feser