Get Updated
Education

Get Started with Git Version Control System

Hello everybody today we will discuss about Git  a distributed Version Control System. Git is a tool to manage your source code history. Revision Control System or also source code management (SCM) . Git was initiated by Linus Torvalds, The person behind the development of Linux. Like the Linux kernel, Git is free software distributed under the terms of the GNU General Public License version 2. Git’s design was inspired by BitKeeper and Monotone and its development began in April 2005. Today Get Started with Git Version Control System . we try to make you clear about version control system and how to get Started with git.

Version control systems

Version control is any kind of practice that tracks and provides control over changes to source code. Software developers sometimes use revision control software to maintain documentation and configuration files as well as source code. It manage changes of documents, computer programs and other collections of information. Changes are usually identified by a number or letter code. For example, an initial set of files is “revision 1”. When the first change is made, the resulting set is “revision 2”, and so on. Each revision is associated with a timestamp and the person making the change. Revisions can be compared, restored, and with some types of files, merged.

Git

Git development began in April 2005. During the development of Linux Kernel, developers had used BitKeeper a Version control system. Linux developers are allowed to use that VCS for free. But the copyright holder of BitKeeper, Larry McVoy, had withdrawn free use of the product after claiming that Andrew Tridgell had reverse-engineered the BitKeeper protocols. Reverse engineering is the processes of extracting knowledge or design information from anything man-made and re-producing it.

Linus Torvalds wanted a distributed system that he could use like BitKeeper, but none of the available free systems met his needs, especially for performance. The development of Git began on 3 April 2005. He announced the project on 6 April. It became self-hosting as of 7 April. Self-hosting is the use of a computer program as part of the operating system that produces new versions of that same program.

Get Started With Git

First Download git on your Device from this link https://git-scm.com/downloads And install it on your computer. During the initialization (in Windows) I think it ask to replace the command Prompt with Git brash. If I were you i wont select it as Command Prompt is itself capable. Now lets begun the process:-

We are working for local files only for now:-

Create a folder. Open it and Open terminal (Command Prompt, Press shift and right click and select Open Command Prompt) in the folder. Create a file. Here are some basic codes only. Just to get Started.

 Codes Used for What
 git –version  To check the Version of git that is installed on your device
 git init  To Initialize git on that directory
 git help config  to Get help to use config You can use this to get help of anything you need like git help add
 git config –global user.name “Name”  To add user name in git. You had set a global variable. during accessing and committing your signature is included.
 git config –global user.email “email”  To add email in the git.
 git add fileName  File name with extension. To add file and to track by Git. Shifiting file form working to Staging area. Use git add -A to add all files
 git status  to check status
 git commit -m “Message”  To commit a file Staging Area to Repository.
 git diff  To check Difference between files in Staging Area and working directory.
 git reset fileName  To remove file from Staging stage. Use git reset to remove all
 git log  To check git logs and commits.
 git branch branchName  To create a branch. here branchName is created. git branch -a to list all branch.
 git checkout branchName  To shift to next branch
 rm -rf .git  This is not git command but this will remove .git folder so git is removed.
 ls and cd folderName/  ls to list item. and cd folderName/ to enter the folder named folderName.

Here is the Using some commands:

Get Started with Git Version Control System Give a comment if any confusion or Suggestion.

Article written by: Sagar Devkota

This is Sagar Devkota Co-Founder of Time and Update. I write about Online Earning Blogging web hosting and domain registration tutorials local technical news and some time about Cryptocurrency mainly Bitcoin. I also write about Git, Github, C, Django, Linux (ubuntu), Cloud Server and what ever not only what I know but also what I heard.

Join the discussion

  1. Pingback: Newbies Programmers and my Suggestion - Time and Update

Leave a Reply

Your email address will not be published. Required fields are marked *