2. Project management¶
This week I worked on defining my final project idea and started to getting used to the documentation process.
First, the git program was downloaded to our PC from the page: https://git-scm.com/
Then install and enter all the options, then go to start and open Git bash:
When opening, a console opens to program with codes:
I started Git Bash and set up my username and email using the following commands:
git config –-global user.name “Wilson-gomez”
git config -–global user.email “ingwcgh@gmail.com”
The next step was to configure the SSH key. Since I didn’t have an SSH key, I had to generate one. To generate and view the SSH key, I used the commands:
ssh-keygen -t rsa -C “my email”
I made a mistake typing the rsa code so no key was generated
correcting the error now generates the key:
Using the command pub I copied the key and paste it into my gitlab.fabcloud.org account under settings -> SSH keys.
clip < ~/.ssh/id_rsa.pub
I entered my Git lab and clicked on the preferences option, to be able to enter another window.
We enter the theme navigation window and on the left side we click on the SSH Keys option to enter the key.
Now I can access the repository. Clone my repository using SSH with the following code:
To clone first I must create a folder in the document folder and you have to search for it with code ls
But since the folder was not found, you have to use the CD command and the name of the folder where its subfolder is located. Bad folder location error.
The correct location was found using in code.
cd wilson-gomez
Then enter git clone codes to clone repository page to folder on my pc
git clone git@gitlab.fabcloud.org:academany/fabacademy/2022/labs/esan/students/wilson-gomez.git.
Then in visual studio code the cloned templates of the Wilson-gomez folder were edited.
USING VISUAL STUDIO CODE¶
Searching the net how to edit Markdown format I found that with visual studio code it is very simple, there are specific features of Markdown that will help you be more productive.
This software is very dynamic since while you are editing you see in another window how your edition is going, which makes it easier to correct. Its edition becomes easier, since the left side can have the entire list of tasks per week which facilitates its edition, then it is saved, the codes that are handled are from the same Markdown template.
The only drawback is that the preview cannot be viewed for the videos, nor for the scheduled downloads with their corresponding extensions, but it is very dynamic for the rest of the work.
I apply git pull to download content from the remote to the local repository, updating everything automatically to show all the changes, and its result will be the merger of the remote code with the local code.
I apply git add to add a change to the working directory in the staging environment. This tells Git that I want to include updates to a particular file on the next commit.
I apply the git commit command to save the changes to the local repository the “commit” command is used to save the changes to the local repository the “git commit” command just saves a new commit object to the local Git repository. The exchange of confirmations must be done manually and explicitly.
As a final step I use the git push command, which loads the contents of the local repository even remote, this push is the way to transfer commits from your local repository to a remote repository