Skip to content

Commit 7cc4936

Browse files
committed
added get started bash script
1 parent 2343160 commit 7cc4936

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

README.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,23 @@ In 20-30 seconds.
1616
1717
To execute just run the following commaind inside a demo repository:
1818

19-
* First download the script:
20-
21-
```
22-
wget https://raw.githubusercontent.com/bobbyiliev/github-activity-bash-script/main/activity.sh
23-
```
24-
25-
* After that run the script:
26-
27-
```
28-
bash activity.sh
29-
```
30-
31-
Finally, push your changes to GitHub:
32-
33-
```
34-
git push origin -f your_branch_name"
19+
1. First download the script
20+
2. After that run the script
21+
3. Finally, push your changes to GitHub
22+
23+
# Get started
24+
25+
```bash
26+
cwd=$(pwd) && \
27+
dir=$(mktemp -d -p $cwd test-git-repo-XXXXXXXXX) && \
28+
mkdir -p $dir && cd $dir && git init && \
29+
curl -sL 'https://raw.githubusercontent.com/bobbyiliev/github-activity-bash-script/main/activity.sh' | \
30+
bash -x && \
31+
git branch -m master main ; \
32+
echo -e "\n\nTODO push your changes:\n\t\
33+
git remote add origin https://github.com/username/reponame\n\t\
34+
git push origin --force --set-upstream origin main\n\n" \
35+
\
3536
```
3637

3738
# Introduction to Bash Scripting

0 commit comments

Comments
 (0)