Skip to content

Commit 2d03cf6

Browse files
committed
Remotes variable repo.
1 parent 45cdd93 commit 2d03cf6

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

remotes.sh

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
#!/usr/bin/env bash
2-
git remote add at git@atlas-tmp:tmp/test.git
3-
git remote add as [email protected]:cirosantilli-test.git
4-
git remote add bb [email protected]:cirosantilli/test.git
5-
git remote add gc https://ciro.santilli:[email protected]/p/cirosantilli-test
6-
git remote add gh [email protected]:cirosantilli/test.git
7-
git remote add gl [email protected]:cirosantilli/test.git
8-
git remote add gll http://root:5iveL!fe@localhost:3000/gitlab-org/gitlab-test.git
9-
git remote add origin [email protected]:cirosantilli/test.git
10-
git remote add pf [email protected]:cirosantilli/test.git
11-
git remote add sf ssh://[email protected]/p/cirosantilli-test/code
2+
3+
if [ $# -gt 0 ]; then
4+
REPO="$1"
5+
shift
6+
else
7+
REPO=test
8+
fi
9+
10+
git remote add at git@atlas-tmp:tmp/${REPO}.git
11+
git remote add as [email protected]:cirosantilli-${REPO}.git
12+
git remote add bb [email protected]:cirosantilli/${REPO}.git
13+
git remote add gc https://ciro.santilli:[email protected]/p/cirosantilli-${REPO}
14+
git remote add gh [email protected]:cirosantilli/${REPO}.git
15+
git remote add gl [email protected]:cirosantilli/${REPO}.git
16+
git remote add gll http://root:5iveL!fe@localhost:3000/gitlab-org/gitlab-${REPO}.git
17+
git remote add origin [email protected]:cirosantilli/${REPO}.git
18+
git remote add pf [email protected]:cirosantilli/${REPO}.git
19+
git remote add sf ssh://[email protected]/p/cirosantilli-${REPO}/code

0 commit comments

Comments
 (0)