Skip to content

Latest commit

 

History

History
80 lines (52 loc) · 1.43 KB

README.md

File metadata and controls

80 lines (52 loc) · 1.43 KB

Git & GitHub Introduction

This is the official Repository for the Event of Git & GitHub introduction Conducted by the Verge Team in SRM University on 1st October 2022 (Saturday).

Git Introduction

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Git Basic Commands

  1. Git init

    This command is used to initialise a workspace in your local system which enables to use the git features in our project.

$ git init
  1. Git remote add origin

    This command is used to link the remote repository to our local repository.

$ git remote add origin <your remote repository link>
  1. Git Branch

    This command is used to list all the branches in our local system.

$ git branch

Note: -r flag is used to fetch the branches of our remote repository.

$ git branch -r
  1. Git Chekcout

    This command is used to switch the branches in your git project.

$ git checkout <Your Branch name>
  1. Git Add

    To add all the files in the stage area

$ git add .

To add a single file in the stage area.

$ git add <your file name.extenion>
  1. Git Commit
$ git commit -m "<your message>"
  1. Git Push
$ git push
  1. Git Pull
$ git pull

Stay tuned our team is working on this. with you all shortly.