Conversion to Markdown
This commit is contained in:
parent
b93fed9821
commit
b7163d891b
1 changed files with 87 additions and 50 deletions
137
scriptActions.md
137
scriptActions.md
|
@ -1,51 +1,88 @@
|
||||||
|
|
||||||
* =simple-setup.sh=
|
# `simple-setup.sh`
|
||||||
0. [@0] Setup actions
|
0. Setup actions
|
||||||
- Load the utility script
|
- Load the utility script
|
||||||
- Sets the default location that the sample repository is to be prepared in
|
- Sets the default location that the sample repository is to be prepared in
|
||||||
- Checks if a command-line parameter has been passed, and re-set to the location to that value if so.
|
- Checks if a command-line parameter has been passed, and re-set to the location to that value if so.
|
||||||
- Removes the target location if relevant.
|
- Removes the target location if relevant.
|
||||||
1. Creates the location where the new repository will reside and =cd='s into it.
|
|
||||||
2. Initialised a git repository in that location with the command
|
1. Creates the location where the new repository will reside and `cd`s into it.
|
||||||
: git init <location>
|
|
||||||
3. Sets the user's git user name with the command
|
2. Initialised a git repository in that location with the command
|
||||||
: git config --local user.name "Gaius Julius Caesar"
|
```
|
||||||
4. Sets the user's git user e-mail address with the command
|
git init <location>`
|
||||||
: git config --local user.email gjcaesar@pontifexmaximus.rm
|
```
|
||||||
5. Creates a text file called =information.md=
|
3. Sets the user's git user name with the command
|
||||||
6. Adds and commits the new file will the commands
|
```
|
||||||
: git add information.md
|
git config --local user.name "Gaius Julius Caesar"
|
||||||
: git commit -m "commit1"
|
```
|
||||||
7. Makes a change to the text file.
|
4. Sets the user's git user e-mail address with the command
|
||||||
8. Adds and commits that change will the commands
|
```
|
||||||
: git add information.md
|
git config --local user.email gjcaesar@pontifexmaximus.rm
|
||||||
: git commit -m "commit2"
|
```
|
||||||
9. Makes another change to the text file.
|
5. Creates a text file called `information.md`
|
||||||
10. Adds and commits that change will the commands
|
|
||||||
: git add information.md
|
6. Adds and commits the new file will the commands
|
||||||
: git commit -m "commit3"
|
```
|
||||||
11. Creates, from =master=, and then checks out a new branch using the command
|
git add information.md
|
||||||
: git checkout -b Rel1
|
git commit -m "commit1"
|
||||||
12. Makes a change to =information.md=
|
```
|
||||||
13. Adds and commits that change will the commands
|
7. Makes a change to the text file.
|
||||||
: git add information.md
|
|
||||||
: git commit -m "commit4"
|
8. Adds and commits that change will the commands
|
||||||
14. Makes another change to the text file.
|
```
|
||||||
15. Adds and commits that change will the commands
|
git add information.md
|
||||||
: git add information.md
|
git commit -m "commit2"
|
||||||
: git commit -m "commit5"
|
```
|
||||||
16. Creates, from =master=, and then checks out another new branch using the commands
|
9. Makes another change to the text file.
|
||||||
: git checkout master
|
|
||||||
: git checkout -b Rel2
|
10. Adds and commits that change will the commands
|
||||||
17. Makes a change to =information.md=
|
```
|
||||||
18. Adds and commits that change will the commands
|
git add information.md
|
||||||
: git add information.md
|
git commit -m "commit3"
|
||||||
: git commit -m "commit6"
|
```
|
||||||
19. Makes another change to the text file.
|
11. Creates, from `master`, and then checks out a new branch using the command
|
||||||
20. Adds and commits that change will the commands
|
```
|
||||||
: git add information.md
|
git checkout -b Rel1
|
||||||
: git commit -m "commit5"
|
```
|
||||||
21. Checks out =master= with the command
|
12. Makes a change to `information.md`
|
||||||
: git checkout master
|
|
||||||
22. Prints out the commit history log of the repositoty, showing the changes on all branches, with command
|
13. Adds and commits that change will the commands
|
||||||
: git log --oneline --graph --decorate --all
|
```
|
||||||
|
git add information.md
|
||||||
|
git commit -m "commit4"
|
||||||
|
```
|
||||||
|
14. Makes another change to the text file.
|
||||||
|
|
||||||
|
15. Adds and commits that change will the commands
|
||||||
|
```
|
||||||
|
git add information.md
|
||||||
|
git commit -m "commit5"
|
||||||
|
```
|
||||||
|
16. Creates, from `master`, and then checks out another new branch using the commands
|
||||||
|
```
|
||||||
|
git checkout master
|
||||||
|
git checkout -b Rel2
|
||||||
|
```
|
||||||
|
17. Makes a change to `information.md`
|
||||||
|
|
||||||
|
18. Adds and commits that change will the commands
|
||||||
|
```
|
||||||
|
git add information.md
|
||||||
|
git commit -m "commit6"
|
||||||
|
```
|
||||||
|
19. Makes another change to the text file.
|
||||||
|
|
||||||
|
20. Adds and commits that change will the commands
|
||||||
|
```
|
||||||
|
git add information.md
|
||||||
|
git commit -m "commit5"
|
||||||
|
```
|
||||||
|
21. Checks out `master` with the command
|
||||||
|
```
|
||||||
|
git checkout master
|
||||||
|
```
|
||||||
|
22. Prints out the commit history log of the repositoty, showing the changes on all branches, with command
|
||||||
|
```
|
||||||
|
git log --oneline --graph --decorate --all
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue