AWS | Devops | Technology
  • Home
  • AWS
    • What is Amazon AWS.
    • How to keep the AWS cost low
    • Lists of Products and services from AWS
    • What AWS does to keep your information secure?
    • IAM policies via JSON in a single page
    • How to access AWS redshift from a local machine
    • Packer templates in a single page
  • DevOps
    • Understanding Git via a Single page
    • Understanding Ansible in a single page
    • UNDERSTANDING TERRRAFORM IN A SINGLE PAGE
  • Contact US.

DEVOPS

View my profile on LinkedIn

Understanding Git via  Single page

1/6/2018

0 Comments

 

Git was created by Linus Torvalds in 2005 for development of the Linux kernel, with other kernel developers contributing to its initial development. So it was a kindoff tool for collaborating the code with fellow developers. Its current maintainer since 2005 is Junio Hamano.

Git is a version control system for tracking changes in computer files and coordinating multiple people working with same set of files. It is primarily used for source code management in software development but it can be used to keep track of changes in any set of files. As a distributed revision control system it is aimed at speed, data integrity, and support for distributed, non-linear workflows.

As with most other distributed version control systems,every Git directory on every computer is a full-fledged repository with complete history and full version tracking abilities, independent of network access or a central server.This helps reducing the level of risk of the source code from a single point of failure.

Git is free and open source software distributed under the terms of the GNU General Public License version 2. there are multiple free and paid versionof the implementation of Git.  There are various  ways a git can be accessed  or managed from a client/ user machine. one of the most powerful option is via command line. This is considered the  most powerful and most feature rich option  to connect and manage local Git repository.
​
For ease of use of the  readers, we are adding a table of most common  commands used in managing a Git repository.
​
Sl.no
Command
Parameter
Action
1
​git config
​--global user.name
​Sets the name you want attached to your commit transactions
2
Value
​--global user.email
​Sets the email you want atached to your commit transactions
3
​git init
​[Project-name]
​This will create a subfolder inside the git repository directiry  to perform  a  git clone
4
​git clone
​[url]
This will download the  data in the server  for the particular  main branch to the local.
5
git status
​Check the status of the git documents for any new version
6
​git diff
​Staged lists out the difference between the current file  in local repo with the list of  modifications.
7
​git add
​Snapshots the filefor versioning, as equivalent to staging the file
8
​git reset
[file]
​Unstage the file, reverse of git add
9
​git commit
 -m "text"
​Type message about the change that is contained in this version.
10
​
​all
Commits all the files in folder which are not yet commited
11
​git pull
​Pull  the latest updated files  from the server  to the local repository
12
​git branch
​Lists  out all the branch in current repository
13
​[branch-name]
​Creates a  new branch
14
​git checkout
​[branch-name]
​Switches  to specified branch and updates  the working directory
15
​git merge
​[branch]
​Combines the specified branches history to the current branch
16
​git branch
​-d [branch-name]
​Deletes the specified branch
Git  provides a failry comprehensive documentation at the git site (Here)
There is also a quick referance cheat sheet provided  by Git
github-git-cheat-sheet.pdf
File Size: 377 kb
File Type: pdf
Download File

Disclaimer: The information given here is based on the writers knowledge and understanding. Users are recommended to check the respective organizations for authenticity, correctness and latest update. We will not entertain any legal actions for any loss due to usage of the blogs posted here.
0 Comments



Leave a Reply.

Powered by Create your own unique website with customizable templates.
  • Home
  • AWS
    • What is Amazon AWS.
    • How to keep the AWS cost low
    • Lists of Products and services from AWS
    • What AWS does to keep your information secure?
    • IAM policies via JSON in a single page
    • How to access AWS redshift from a local machine
    • Packer templates in a single page
  • DevOps
    • Understanding Git via a Single page
    • Understanding Ansible in a single page
    • UNDERSTANDING TERRRAFORM IN A SINGLE PAGE
  • Contact US.