-
Notifications
You must be signed in to change notification settings - Fork 0
/
update_git_from_svn.cmd
46 lines (24 loc) · 1.12 KB
/
update_git_from_svn.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
@echo off
set GIT_FROM_SVN_PARAMS_SCRIPT_PATH=%~dp0
cd /D "%GIT_FROM_SVN_PARAMS_SCRIPT_PATH%"
echo reading paramethers begin...
call create_git_from_svn_params
echo reading paramethers end.
cd %GIT_FROM_SVN_PARAMS_LOCAL_PROJECT_FOLDER_NAME%
echo ===============================================================================
git svn rebase
echo ===============================================================================
git svn create-ignore
echo ===============================================================================
git add --all
echo ===============================================================================
git commit -am "Added .gitignore from SVN ignore"
git svn dcommit
echo ===============================================================================
git push --set-upstream origin --all
git push --set-upstream origin --tags
echo ===============================================================================
echo svn externals in repo:
git svn show-externals
echo ===============================================================================
cd /D "%GIT_FROM_SVN_PARAMS_SCRIPT_PATH%"