Project Management | Week 02

This week I got access of “gitlab.fabcloud.org”. Sign Up at GitLab and build up my fab Academy Weekly assigment. Firstly I decided to build up website with HTML


What is the Gitlab?


  • GitLab is a single application that serves as a DevOps Platform. This distinguishes GitLab and results in a streamlined software workflow, freeing your company from the limits of a patchwork toolchain. Learn how GitLab provides unrivalled insight and productivity across the DevOps lifecycle in a single application.

  • Sign Up/Setting Git Lab

    • Once you get a confirmation of Gitlab account in email with password we have to follow this setup steps
    • Log in to Gitlab.fabcloud.org after loging please change the password



  • Finally I got Access to GitLab for Student.


  • It’s my dashboard for my GitLab. And my profile Page!


  • How to check for existing ssh key in Windows


    If you are already using ssh and key are present than you need to follow this documentation to check.
    Check for existing SSH Key
    We can check using git bash
    by using command $ ls -al ~/.ssh you can find keys if already created.


    Staging Area for working tree



    Image Ref : https://miro.medium.com/max/1372/1*diRLm1S5hkVoh5qeArND0Q.png


    While working in git we have controll how to creae staging and only update those file which are needed to updated and create commit message accroding to it.
    we can use git add . to create all file to be added in commit. or
    We can use git add index.html to be very specific which file we want to commit for now and push on server.

    Setting up ssh



    • I got a encrypted .ssh key which I have to copy once to paste in my GitLab account!



    • i have to open “https://gitlab.fabcloud.org/-/profile/keys” >> Paste the key in diolouge box >> Enter “LAPTOP HP” in Title >> “Add Key”


    Removing MK Docs using git -rm

    • To set up your own html website, we first need to delete everything in our repository. To do that,

    • $ git rm --cached * -r

    • Commits and prepares the tracked changes to be pushed to a remote repository. Use 'git reset –soft HEAD1' to erase this commit and change the file, then commit and add the file again. Publish the modifications to GitHub from your local repository.
    • Commit Create a packet to transmit along with your comments on what changes you've made to the packet so it can be seen in the timeline.

    • $ git commit -m "deleting everything"

    • Changes in your local repository are pushed to the remote repository you designated as the origin.
    • Git Push is the last command to send a packet to the server, where it updates all files.

    • $ git push"

    Selecting HTML Theme

    • Link:HTML5UP



    • download HTML Theme



    • Extract the file



    • Right click and Extract all files

    • >

    • File is Extract

    Selecting HTML Editor

    What is The VisualStudio Code

  • Microsoft's Visual Studio Code is a source code editor for Windows, Linux, and macOS. Support for debugging, syntax highlighting, intelligent code completion, snippets, code refactoring, and embedded Git are just a few of the features.

    • Link:VisualStudio Code
    • Open the Folder



    • Select the Folder





    • Then change My Name and Title



    • Website Output

    Git Commands for pull push of repo

      Git Bash Commands

      CD
    • You may go into the target folder where you need to clone a repository by using the cd command. example

       

      $ cd/Desktop/JK fabacademy/jaydeep-parejiya

      git clone
    • You can clone a repository from the internet with git clone. After the command, you must add the clone link. This is the first step in beginning to work on the project you want to edit.

    • $ git clone git@gitlab.fabcloud.org:academany/fabacademy/2022/labs/vigyanashram/students/jaydeep-parejiya.git

      git add .
    • It stages the file for commit and adds it to your local repository. Use 'git reset HEAD YOUR-FILE' to unstage a file. Commit the file in your local repository that you've staged.
    • We need to use this command to add modifications to specified files.to add all files.

    • $ git add .

      git Status
    • git-status - Displays the current state of the working tree. This command is used to see how many files have been added and how many have been modified. If it is not added, it will appear in red, and if it is added, it will appear in green.

    • $ git status

      git pull
    • It is recommended that you pull before pushing so that any modifications made by others are reflected in your local repository. After pulling, you may need to use:q command to stop the pull request.

    • $ git pull

      git commit
    • Commits and prepares the tracked changes to be pushed to a remote repository. Use 'git reset –soft HEAD1' to erase this commit and change the file, then commit and add the file again. Publish the modifications to GitHub from your local repository.
    • Commit Create a packet to transmit along with your comments on what changes you've made to the packet so it can be seen in the timeline.

    • $ "git commit -m "Your Comment"

      git push
    • Changes in your local repository are pushed to the remote repository you designated as the origin.
    • Git Push is the last command to send a packet to the server, where it updates all files.

    • $ git push

    Website Output



    Safety Switch by Parejiya Jaydeep is licensed under CC BY-ND 4.0