-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathto_stable_branch.sh
32 lines (29 loc) · 989 Bytes
/
to_stable_branch.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
#!/bin/bash
#git checkout stable
#git checkout -b stable-$(grep -o "versionName\s\+.*" app/build.gradle | tail -1 | awk '{ print $2 }' | tr -d \''"\')
#git push origin stable-$(grep -o "versionName\s\+.*" app/build.gradle | tail -1 | awk '{ print $2 }' | tr -d \''"\')
version=$(grep -o "versionName\s\+.*" app/build.gradle | tail -1 | awk '{ print $2 }' | tr -d \''"\')
git branch -D stable
git push origin --delete stable
git push framagit --delete stable
git checkout main
git checkout -b stable
git push origin stable
git push framagit stable
git checkout -b stable-$version
git push origin stable-$version
git push framagit stable-$version
git checkout main
cd ../Sync
git branch -D stable
git push origin --delete stable
git push framagit --delete stable
git checkout main
git checkout -b stable
git push origin stable
git push framagit stable
git checkout -b stable-$version
git push origin stable-$version
git push framagit stable-$version
git checkout main
cd ../CarnetAndroid