blog

Git Commands in day-to-day Life

Nidhin T T 04 Aug 2018 5 Comments

What is Git?

When we are thinking of Git Most of us have questions like, what is git?, and for what purpose it is used? . So simply Git is a free and open source distributed version control system and it could be used as a server out of the box. Dedicated Git server software helps, amongst other features, to add access control, display the contents of a Git repository via the web, and help managing multiple repositories. Every dev has a working copy of the code and full change history on their local machine, by Linus Torvalds.Today Git is the most widely used modern version control system in the world.Developers who have worked with Git are well represented in the pool of available software development talent and it works well on a wide range of operating systems and IDEs (Integrated Development Environments).

In Git, every developer's working copy of the code is also a repository that can contain the full history of all changes. In addition to being distributed, Git has been designed with performance, security and flexibility in mind.

The raw performance characteristics of Git are realy very strong when compared to ohter alternatives. Committing new changes,merging, branching and comparing past versions are all optimized for the performance. The algorithms implemented inside Git take advantage of deep knowledge about common attributes of real source code file trees, how they are usually modified over time and what the access patterns are.

Git has been designed with the integrity of managed source code as a top priority. The content of the files as well as the true relationships between files and directories, versions, tags and commits, all of these objects in the Git repository are secured with a cryptographically secure hashing algorithm called SHA1. This protects the code and the change history against both accidental and malicious change and ensures that the history is fully traceable.

Getting Started with Git

Lets look into the most common cammands in git

  • git config
  • git init
  • git branch
  • git push
  • git pull
  • git merge
  • git status
  • git diff
  • git clone
  • git checkout
  • git add
  • git commit

Now copy this code index.html download from here to your index.html file . . and now visit your site you can see a login and register form. next we need to make a php file called reginster.php to save the data entered in the register form.

Create Your First PHP page

We need a data base and a table to save the details. so click on the manage database tab in the 000webhost then click New Database. Create a new database with any name just like envc_db , and give username and password , after that click create button. Now you can see the DB Name , DB User and DB Host, click on the manage and then goto phpmyadmin . now you need to create a table , so select your database and type name of your table eg: users , and 4 coluns .as shown in the image create table then like this , don't forget to tick the AI for the user_id colun table

php code

Now copy this php code or download the php code to your register.php file , and change db name , db username and password according to your , Now you can see when ever a user register it is inserted to the table users .

You have created your first website with a registration form. now you can see the registed users on the table image

Thank you for reading, if you have any doubts please contact me on nidhin@envcreations.com.

Play RUMMY online freee and earn money

Play Rummy and get Free 25.00 rs

Latest Comments

team

Nidhin T T

Aug 02,2018

This blog was created for my friend Owusu Jacob , and i don't get enough time so it's not a perfect one.

replay
team

Anoop

Aug 02,2018

Its realy awesome, it worked for me , can you please show how to login and see the registerd users?

replay

Popular Post

Popular Tags