DEV Community

antony stark
antony stark

Posted on

Day-2 of Posting a blog

I Learn about the git and some of its commands,First of all we want to know what is Git

Git is a distributed Version control system founded by Linus Torvalds ,He made git for developing the linux kernel

  • Its main objective is to track changes in source code and collabrate the project with developers ,also prevent conflict on overwriting the code with others code

Some of the codes for Terminal and git commands :-

  • cd/cd../- change directory- used to change the directory or folder

  • ls- list files

  • git init - intializing the git into the local repository through terminal or power shell

  • git remote add orgin -used to connect with the gitlab repository with local repository

  • git commit -m"message to display in repo" -used as a savepoint in the Repository history and code is ready to push

  • git clone -used to clone the existing project or source code in the local repository

  • git status -displays the current state of your working directory and staging area

Top comments (0)