Installing the GIT in Unix


[tutorialbyexample@tutorialbyexample /tmp]# yum install git
Loaded plugins: changelog, rhnplugin, security, verify
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package git.x86_64 0:1.7.1-3.el6_4.1 will be installed
--> Processing Dependency: perl-Git = 1.7.1-3.el6_4.1 for package: git-1.7.1-3.el6_4.1.x86_64
--> Processing Dependency: perl(Git) for package: git-1.7.1-3.el6_4.1.x86_64
--> Processing Dependency: perl(Error) for package: git-1.7.1-3.el6_4.1.x86_64
--> Running transaction check
---> Package perl-Error.noarch 1:0.17015-4.el6 will be installed
---> Package perl-Git.noarch 0:1.7.1-3.el6_4.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================== Package                         Arch                        Version                              Repository                                            Size
=======================================================================
Installing:
 git                             x86_64                      1.7.1-3.el6_4.1                      test-clone-rhel-x86_64-server-6                      4.6 M
Installing for dependencies:
 perl-Error                      noarch                      1:0.17015-4.el6                      test-clone-rhel-x86_64-server-6                       29 k
 perl-Git                        noarch                      1.7.1-3.el6_4.1                      test-clone-rhel-x86_64-server-6                       28 k

Transaction Summary
=======================================================================
Install       3 Package(s)

Total download size: 4.7 M
Installed size: 0
Is this ok [y/N]: y
Downloading Packages:
(1/3): git-1.7.1-3.el6_4.1.x86_64.rpm                                                                                                 | 4.6 MB     00:00
(2/3): perl-Error-0.17015-4.el6.noarch.rpm                                                                                        |  29 kB     00:00
(3/3): perl-Git-1.7.1-3.el6_4.1.noarch.rpm                                                                                         |
28 kB     00:00
-----------------------------------------------------------------------------------------------------------------------Total                                                                                                                        5.9 MB/s | 4.7 MB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 1:perl-Error-0.17015-4.el6.noarch                                                                                                         1/3
  Installing : perl-Git-1.7.1-3.el6_4.1.noarch                                                                                                           2/3
  Installing : git-1.7.1-3.el6_4.1.x86_64                                                                                                                3/3
There was an error communicating with RHN.
Package profile information could not be sent.
Error communicating with server. The message was:
Connection timed out on readline
  Verifying  : git-1.7.1-3.el6_4.1.x86_64                                                                                                                1/3
  Verifying  : perl-Git-1.7.1-3.el6_4.1.noarch                                                                                                           2/3
  Verifying  : 1:perl-Error-0.17015-4.el6.noarch                                                                                                         3/3

Installed:
  git.x86_64 0:1.7.1-3.el6_4.1

Dependency Installed:
  perl-Error.noarch 1:0.17015-4.el6                                             perl-Git.noarch 0:1.7.1-3.el6_4.1

Complete!

</ br>
Type command:

[ansible@tutorialbyexample.com ~]$ git
usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path]
           [-p|--paginate|--no-pager] [--no-replace-objects]
           [--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE]
           [--help] COMMAND [ARGS]

The most commonly used git commands are:
   add        Add file contents to the index
   bisect     Find by binary search the change that introduced a bug
   branch     List, create, or delete branches
   checkout   Checkout a branch or paths to the working tree
   clone      Clone a repository into a new directory
   commit     Record changes to the repository
   diff       Show changes between commits, commit and working tree, etc
   fetch      Download objects and refs from another repository
   grep       Print lines matching a pattern
   init       Create an empty git repository or reinitialize an existing one
   log        Show commit logs
   merge      Join two or more development histories together
   mv         Move or rename a file, a directory, or a symlink
   pull       Fetch from and merge with another repository or a local branch
   push       Update remote refs along with associated objects
   rebase     Forward-port local commits to the updated upstream head
   reset      Reset current HEAD to the specified state
   rm         Remove files from the working tree and from the index
   show       Show various types of objects
   status     Show the working tree status
   tag        Create, list, delete or verify a tag object signed with GPG

See 'git help COMMAND' for more information on a specific command.

Version of GIT:
[tutorialbyexample@tutorialbyexample /tmp]# git --version
git version 1.7.1
</ br>Have good day ahead!!! </ br>Reference: https://git-scm.com/

No comments:

Post a Comment