stephnangue / openlab

0 stars 0 forks source link

10. Add features and tag them #17

Open stephnangue opened 1 year ago

stephnangue commented 1 year ago

Show a figure to resume the chapter

Add the "install python" feature

Create the branch 'install-python' and switch to it

git checkout -b install-python main

Edit 'install-runtimes.sh' to add code necessary to install python

yum install python3
python3 --version
yum install python3-requests
yum install python3-pip

Commit and push the changes to the remote repository

git add . git commit -m "install python" git push github install-python

Merge 'install-python' into main branch, delete the branch 'install-python' and update the local reference 'github'. NB : use a squash commit

git fetch github -p git checkout main git branch -D install-python git pull github main git log --graph

Add the "install ansible" feature

Create the branch 'install-ansible' and switch to it

git checkout -b install-ansible main

Edit 'install-runtimes.sh' to add code necessary to install Ansible

#install Ansible
python3 -m pip -V
python3 -m pip install --user ansible

git add . git commit -m "install Ansible" git push github install-ansible --tags

Merge 'install-ansible' into main branch, delete the branch 'install-ansible' and update the local reference 'github'

git fetch github -p git checkout main git branch -D install-ansible git pull github main

Add the "install robot framework" feature

git checkout -b install-robot main

Edit 'install-runtimes.sh' to add code necessary to install robot framework

#install robot framework
python3 -m pip -V
python3 -m pip install robotframework

git add . git commit -m "install robot framework" git push github install-robot ---- merge install-robot into main and delete install-robot git fetch github -p git checkout main git branch -D install-robot git pull github main

Show the commit tree

git log --graph