week2 update

parent af797532
Pipeline #85341 passed with stage
in 28 seconds
......@@ -29,6 +29,10 @@
<h3>What is GIT?</h3>
GIT is a Version control. That is a system that records changes to a file or set of files over time so that you can recall specific versions later.
It allows you to revert selected files back to a previous state, revert the entire project back to a previous state, compare changes over time, see who last modified something that might be causing a problem, who introduced an issue and when, and more.<br>
The control system used is locally because it is a very simple way, to avoid problems of overwriting files and losing the original files, names and key dates will be placed when uploading the files.
<a title="Local Version Control Systems"><img class="image center" src="images/localversion.jpg"/></a>
<h6>Source: https://git-scm.com/book/en/v2/Getting-Started-About-Version-Control</h6>
For the FabAcademy we use the fabcloud server to put our files and repository. I used the tutorial from <a href="http://fabacademy.org/2019/docs/FabAcademy-Tutorials/week01_principles_practices_project_management/git_simple.html"> Eduardo Chamorro </a> to do this assignment.
Before making the configuration, read the <a href="https://git-scm.com/book/en/v2">GIT book</a> to understand the principles of the commands to carry out future work.<br>
......@@ -78,11 +82,25 @@ cat ~/.ssh/id_rsa.pub</pre></code>
Once the repository is cloned, I put all files of my webpage in my clone folder to upload all of them to my online GIT repository.
Then I perform the push of all my files with the following commands:
<br/><pre><code>git add .
git pull
git merge
git commit -m ‘change you did’
git push</pre></code>
<div class="row">
<li>Add the new files you added to git
<br><code>git add . </code>
<li>Download the last copy from the repository.
<br><code>git pull</code>
<li>Have a working copy of your repo.
<br><code>git merge</code>
<li>Name your update, so you know what you changed with this push, for example "change you did"
<br><code>git commit -m ‘change you did’</code>
<li>Upload to the Repository.
<br><code>git push</code>
<a title="Push"><img class="image center" src="images/push.jpg"/></a>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment