Getting Started + Introduction Git



tải về 29.67 Kb.
Chế độ xem pdf
trang4/4
Chuyển đổi dữ liệu21.09.2022
Kích29.67 Kb.
#184191
1   2   3   4
1. Getting Started and Git Basic
2. Git Internal and Working with Git
2. Introduction to Git
13
4.4 Installing from Source
If you do want to install Git from source, you need to have the following libraries that Git depends on: 
autotools, curl, zlib, openssl, expat, and libiconv.
- Install:
$ tar -zxf git-2.0.0.tar.gz
$ cd git-2.0.0
$ make configure
$ ./configure --prefix=/usr
$ make all doc info
$ sudo make install install-doc install-html install-info
After this is done, you can also get Git via Git itself for updates:
$ git clone git://git.kernel.org/pub/scm/git/git.git


© 2020 By Sun* - Talent Development Office - Vietnam Education Unit - All rights reserved.
2. Introduction to Git
14
5. First-Time Git Setup
- The first thing you should do when you install Git 
is to set your user name and email address
$ git config --global user.name "John Doe"
$ git config --global user.email 
johndoe@example.com 
- Now that your identity is set up, you can 
configure the default text editor that will be used 
when Git needs you to type in a message. If not 
configured, Git uses your system’s default editor.
- Check your settings: 
$ git config --list
user.name=John Doe
user.email=johndoe@example.com
color.status=auto
color.branch=auto

You can also check what Git thinks a specific key’s 
value is by typing git config :
$ git config user.name
John Doe


© 2020 By Sun* - Talent Development Office - Vietnam Education Unit - All rights reserved.
15
Question & Answer?


© 2020 By Sun* - Talent Development Office - Vietnam Education Unit - All rights reserved.
16

tải về 29.67 Kb.

Chia sẻ với bạn bè của bạn:
1   2   3   4




Cơ sở dữ liệu được bảo vệ bởi bản quyền ©tieuluan.info 2022
được sử dụng cho việc quản lý

    Quê hương