Skip to content

2-update README.md with Installation and Git instructions. #2

@udaycruise2903

Description

@udaycruise2903

Update Readme.md with

  • Installation
  • working with Git
  • working with markdown

Installation

  1. Install Visual Studio Code

  2. Install Git

    • open CMD in windows start menu and type
      $ git config --global user.name "username provided in github(Altaf-hub)"
      $ git config --global user.email "email provided in github"
  3. Follow this tutorial to install Jekyll

    • Download Ruby+Devkit from Ruby Installer
    • Run the ridk install step on the last stage of the installation wizard.
    • From the options choose 3 for MSYS2 and MINGW development tool chain
    • open CMD in start menu and type gem install jekyll bundler
    • type jekyll -v in terminal to check if jekyll is installed

Working with Git

  • To clone this repository
    git clone https://github.com/Altaf-hub/Altaf-hub.github.io.git
  • To fetch all the changes in your github repo
    git fetch
  • To list all branches
    git branch -r
  • To jump to a branch of your choice(1-update)
    git checkout 1-update
  • To download the changes to current branch in local repo from the same branch in github repo
    git pull
  • To check the changes
    git status
  • To add all the changes or to add these files ( README.md, index.html ) to a branch
    git add . or git add README.md index.html
  • To commit all the changes to a branch
    git commit -m "I have added README"
    add the comments inside apostrophes
  • To push all the changes to online github repo from local repo
    git push origin 1-update
  • Refer this nice article by Gitlab
  • Refer this [article by freecodecamp for more clarity] (https://www.freecodecamp.org/news/git-cheat-sheet/)

Working with Markdown

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions