2.2 KiB
2.2 KiB
simple-setup.sh
-
Setup actions
- Load the utility script
- 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.
- Removes the target location if relevant.
-
Creates the location where the new repository will reside and
cd
s into it. -
Initialised a git repository in that location with the command
git init <location>`
- Sets the user's git user name with the command
git config --local user.name "Gaius Julius Caesar"
- Sets the user's git user e-mail address with the command
git config --local user.email gjcaesar@pontifexmaximus.rm
-
Creates a text file called
information.md
-
Adds and commits the new file will the commands
git add information.md
git commit -m "commit1"
-
Makes a change to the text file.
-
Adds and commits that change will the commands
git add information.md
git commit -m "commit2"
-
Makes another change to the text file.
-
Adds and commits that change will the commands
git add information.md
git commit -m "commit3"
- Creates, from
master
, and then checks out a new branch using the command
git checkout -b Rel1
-
Makes a change to
information.md
-
Adds and commits that change will the commands
git add information.md
git commit -m "commit4"
-
Makes another change to the text file.
-
Adds and commits that change will the commands
git add information.md
git commit -m "commit5"
- Creates, from
master
, and then checks out another new branch using the commands
git checkout master
git checkout -b Rel2
-
Makes a change to
information.md
-
Adds and commits that change will the commands
git add information.md
git commit -m "commit6"
-
Makes another change to the text file.
-
Adds and commits that change will the commands
git add information.md
git commit -m "commit5"
- Checks out
master
with the command
git checkout master
- Prints out the commit history log of the repositoty, showing the changes on all branches, with command
git log --oneline --graph --decorate --all