Git -



GIT GIT .

Git

Debian base GNU/Linux apt-get .

[ubuntu ~]$ sudo apt-get install git-core
[sudo] password for ubuntu:

[ubuntu ~]$ git --version
git version 1.8.1.2

RMP Based GNU/Linux yum :

[CentOS ~]$
su -
Password:

[CentOS ~]# yum -y install git-core

[CentOS ~]# git --version
git version 1.7.1

GIT

GIT .gitconfig . GIT Global configurations .gitconfig Home directory . Global --global .

/etc/gitconfig 1 . --system .

2 Compile Execute :

Commit :

[jerry@CentOS project]$ git config --global user.name "Jerry Mouse"

Commit GIT :

[jerry@CentOS project]$ git config --global user.email "jerry@tutorialspoint.com"

5 Commit PULLING

Remote repository 6 Divergent GIT Merge Commits :

jerry@CentOS project]$ git config --global branch.autosetuprebase always

Color highlighting

COLOR HIGHLIGHTING 1 GIT 2 :

[jerry@CentOS project]$ git config --global color.ui true

[jerry@CentOS project]$ git config --global color.status auto

[jerry@CentOS project]$ git config --global color.branch auto

3

GIT 5 . git config :

[jerry@CentOS project]$ git config --global core.editor vim

MERGE

GIT Merge 6 7 8 :

[jerry@CentOS project]$ git config --global merge.tool vimdiff

GIT

9 git config -list :

[jerry@CentOS ~]$ git config --list

:

user.name=Jerry Mouse
user.email=jerry@tutorialspoint.com
push.default=nothing
branch.autosetuprebase=always
color.ui=true
color.status=auto
color.branch=auto
core.editor=vim
merge.tool=vimdiff
Advertisements