Week 2 - Project Management

Website development

Since I'm a software developer it was not a big deal to create a website for my profile. I started the development process by downloading a free HTML template design. Then I customised HTML and CSS file like I the way I want. This is responsive design which will support all the screen views.

I would love to introduce a new open source text editor from Microsoft called Visual Studio Code. I'm pretty sure that you will love it.

Website designing

Installing and Configuring Git

Git is a distributed revision control system used to manage work flows between multiple people working on the same file. Every Git directory on every computer is a full-fledged repository with complete history and full version tracking abilities, independent of network access or a central server

Git enables us to work on the same repository from different machines. Git tracks all the changes in the file and helps sync them with all the users.

Installing and configuring Git

  1. Create an account in Git lab.
    1. Go to https://gitlab.fabcloud.org/users/sign_in
    2. Enter your fablab credentials and login.
  2. Install Git on your laptop
    1. Open the terminal
    2. sudo apt-get install git
  3. Generate SSH keys
    1. Open terminal
    2. ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
      This creates a new ssh key, using the provided email as a label.
    3. When you're prompted to "Enter a file in which to save the key," press Enter. This accepts the default file location.
      Enter a file in which to save the key (/home/you/.ssh/id_rsa): [Press enter]
    4. Set up a passphrase. This is similar to a password for your Git.
    5. A window will open showing you the SSH keys.
    6. Id_rsa is your private key and id_rsa is your public key.
  4. Start the ssh-agent in the background.
    $ eval "$(ssh-agent -s)"
  5. Add your SSH private key to the ssh-agent. If you created your key with a different name, or if you are adding an existing key that has a different name, replace id_rsa in the command with the name of your private key file.
    $ ssh-add ~/.ssh/id_rsa
  6. Add a global username and global email id
    1. Open terminal
    2. git config --global user.name "your username"
    3. git config --global user.email "your mail id"
  7. The next step is to Add your public key to gitlab account
    1. Open terminal
    2. cat ~/.ssh/id_rsa.pub
    3. Copy the entire thing
  8. Open the gitlab account (https://gitlab.fabcloud.org)
    1. Click on Profile Settings → SSH Keys
    2. Paste the content under “Key”
    3. Give a title to identify
    4. Click on Add key
  9. Clone the repository
    1. Open terminal and change the directory to any location
    2. Type
      git clone git@gitlab.fabcloud.org:academany/fabacademy/2018/labs/fablabtrivandrum/students/abhilash-chandroth.git
    3. Done.
git installation 1

Working with local repository

Check basic git commands with your local repository, command like git status,push and pull are checked

  1. Open terminal
  2. Goto local git directory, using $ cd "directory name"
  3. Type git status to see the lists of locally changed files.
  4. Type git pull to get the latest files from git repo.
  5. Type git add --all will add all the files to index.
  6. Type git commit -m "comment" to commit the changes next push.
  7. Type git push to check in the committed changes to git repo.
git installation 1