I started this week without any knowledge about using GIT Hub, but now I am happy to say that I know more about it. I have built my personal site describing me and my final project. Starting my personal site was not easy because I had to find software that would help me edit and design my site. In the end, I found one, which I thought was amazing. Attached here are the photos and screenshots of the process I went through while working on the Principals and Practices, Project management.
I have been editing my website using NetBeans IDE 8.2. With this program it is very easy to add new content.
Nothing was difficult in building my personal site and nor in creating git account.
After creating my site, and opening an account on Git, I was supposed to plan and sketch a potential semester project and add it to my website.
I have decided to combine different skills I am obtaining from FabAcademy - making almost anything. This is why I chose to make an Intelligent Robotic Tracker that will be able to track faces, light, and provide information about both. It will be able to capture faces using webcam and will have a lamp automatically turn on when it's dark.
Planning and sketching is not easy, because the whole final project relies on good initial plans. Careful consideration needs to be given to choosing which materials to use and what techniques to include, and so on.
Uploading my files to my class archive was initially a struggle, because my account could not push my files to archive. It always provided this error message.
"GitLab: You are not allowed to push code to this project. Fatal: could not read from remote repository. Plese make sire you have the correct access rights and the repository exists."
I spent days working on it, and when I tried to push my files using my colleges's account, it worked. It remained a mystery to me, why is my account failing to push?.
Finally, I asked my supervisor to help me solve this problem. He sent me screenshots of my Github Profile, and I found that I am using different account which is not on Github. I decided to change it and then, It worked. I was like Wooow!!!
I had first to download git and install it to my computer. git for Windows
Generating an SSH key pair on Windows
Run the Git Bash app, which can be found in your Start menu. Run the command:
ssh-keygen -t rsa
It will ask for location and pass phrase. Accept the default location (usually C:\Documents and Settings\username\.ssh\ or C:\Users\username\.ssh) by pressing Enter. The program will generate your key pair and will output a few information like:
Your identification has been saved in test. Your public key has been saved in test.pub. The key fingerprint is: SHA256:wAOlK7MMp2TzTbamkYRN6uvt3DYVeReplGLzrT7tU1E serge@DESKTOP-TG2RPHB The key's randomart image is: +---[RSA 2048]----+ | ... . . | | + + o o E | | .. = * o . . | | = . = + o . | |.*+o.o S o . | |+=++= .. . . | |..o+ +. . . . | | + =o o o | |.o.=... o.. | +----[SHA256]-----+
Type to copy your public key.
cat /c/Users/Serge/.ssh/id_rsa.pub > /dev/clipboard
Then I was a ble to open my online gitlab profile and add your new SSH key by pasting it (CTRL+V) in the text box and clicking "Add key".
After generating and adding SSH Key to my gitlab profile. I Opened a terminal and clone the repository of my FabLab to a local repository
git clone git@git.fabacademy.org:fabacademy2017/fablabrwanda.git
The new repository named fablabrwanda was saved in my computer and inside the folder, there is student folder that has ID’s of our fablab students.. I saved my web page within my personal folder and renamed it as index.html And I was ready to commit that page to git.fabacademy.org. By just right clicking with my mouse within the open folder and choose "Git Bash here..." from the menu (in Windows). and type:
Git init git status
to check the status of the local repo. You should see something like On branch master
Your branch is up-to-date with 'origin/master' Untracked files: (use "git add ..." to include in what will be committed) students/###/index.html
so add the new file(s) with
git add students/### Or git add [--all|-A]
To add all the changes made in the repository. commit the changes (and add a meaningful comment)
git commit -m "first commit"
You do git pull to update your repository.
git pull
and push your changes to the remote repository
git push