-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmtls_split.sh
36 lines (32 loc) · 958 Bytes
/
cmtls_split.sh
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
#!/bin/bash
git clone https://github.com/communitytools/Community-Tools.git
git clone --no-hardlinks Community-Tools cmtls
git clone --no-hardlinks Community-Tools cmtls_theme
git clone --no-hardlinks Community-Tools cmtls_profile
cd cmtls
git filter-branch --subdirectory-filter cmtls HEAD
git reset --hard
git gc --aggressive
git prune
git remote rm origin
git remote add origin git@github.com:kristjanjansen/cmtls.git
git push origin master --force
cd ..
cd cmtls_theme
git filter-branch --subdirectory-filter cmtls_theme HEAD
git reset --hard
git gc --aggressive
git prune
git remote rm origin
git remote add origin git@github.com:kristjanjansen/cmtls_theme.git
git push origin master --force
cd ..
cd cmtls_profile
git filter-branch --subdirectory-filter profiles/cmtls HEAD
git reset --hard
git gc --aggressive
git prune
git remote rm origin
git remote add origin git@github.com:kristjanjansen/cmtls_profile.git
git push origin master --force
cd ..