0

Quick to understand git step by step. Git is a version control system that is used for software development and other version control tasks. As a distributed revision control system it is aimed at speed, data integrity, and support for distributed, non-linear workflows. Git was created by Linus Torvalds in 2005 for development of the Linux kernel, with other kernel developers contributing to its initial development. Its current maintainer is Junio Hamano. (Source: wikipedia)

In this tutorial, we need to explain simply tutorial to understand how to use .git

  1. Create a project folder on your computer.
  2. Create a new repository on github/bitbucket/gitlab or else.
  3. Log into your project folder and type git init to create initial .git
$ git init
  1. Remote repository that you created.
$ git remote add origin git@github.com:your_username/yourproject.git  
  1. Adding all your project to .git, also learn about: .gitignore
$ git add .
  1. Commenting commit that you add it before uploading.
$ git commit -m "Your comment"

  1. Push / uploading all your project to the master project that is in the repository.
$ git push -u origin master

Versioning (Tagging)

  1. Checking all your project version
$ git tag
  1. Adding the new version.
$ git tag -a v1.0 -m 'Initial launch v1.0'  
  1. Uploading the new version that you created.
$ git push origin v1.0
  1. Removing version that have been uploaded (this is usually when you has a small errors in the project, but you wan’t to create a new version again).
$ git push --delete origin v1.0
  1. Removing version / tag on your local (and then do the step number 8).
$ git tag --delete v1.0

Tutorial above is just a quick way to use and understand the .git. This way is often done when you work with .git and without collaboration. There are still many other ways besides that we explained above.

Docs: https://git-scm.com/doc

git linux beginner

Your Answer

blog comments powered by Disqus