File tree Expand file tree Collapse file tree 1 file changed +17
-16
lines changed
Expand file tree Collapse file tree 1 file changed +17
-16
lines changed Original file line number Diff line number Diff line change @@ -16,22 +16,23 @@ In 20-30 seconds.
1616
1717To 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
You can’t perform that action at this time.
0 commit comments