-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinitialize-https.sh
23 lines (18 loc) · 1.02 KB
/
initialize-https.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
#
# Clones the repositories using 'https'. Use the 'initialize-ssh' if you prefer
# to use 'ssh' in cloning the repositories.
# Default to N4SJAMK if no user is given.
USER=${1-N4SJAMK}
# Clone our repositories.
git clone https://github.com/$USER/teamboard-io io
git clone https://github.com/$USER/teamboard-api api
# git clone https://github.com/$USER/teamboard-client client
git clone https://github.com/$USER/teamboard-client-react client-react
git clone https://github.com/$USER/teamboard-img img
# Set 'upstream' to the original repository.
(cd io && git remote add upstream https://github.com/N4SJAMK/teamboard-io.git)
(cd api && git remote add upstream https://github.com/N4SJAMK/teamboard-api.git)
# (cd client && git remote add upstream https://github.com/N4SJAMK/teamboard-client)
(cd client-react && git remote add upstream https://github.com/N4SJAMK/teamboard-client-react.git)
(cd img && git remote add upstream https://github.com/N4SJAMK/teamboard-img.git)