`
songkang666
  • 浏览: 103063 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Git step by step 2 之安装及配置

    博客分类:
  • GIT
 
阅读更多
Git的安装比较简单

一、安装
1、在Debian与Ubuntu下,完全可以用一个apt-get install git或aptitude install git即可完成。这种方法的好处是:简单。

2、还可以用源码进行安装,用源码进行编译安装的话,需要到http://git-scm.com/download下,但需要fan qiang,不然进不去。这种方法的

我用了简易的aptitude install git,只不过Debian的更新源有点问题,找了最新的更新源,编译了source.list文件,即可。


二、配置
安装之后需要配置一下。

Git的配置,有系统级配置、用户级配置以及项目级配置

git config --system(系统级配置,读写的是/etc/gitconfig文件,它是系统对所有用户都普遍适用的配置)
git config --global(用户级配置,读写的是当前用户"家"目录中.gitconfig文件)
git config (项目级配置,读写的是当前项目的工作目录中.git/config文件)


我们进行配置时,可以针对用户进行配置
git config --global user.name "xxx"
git config --global user.email "xxx@yyy.com"
这两条配置比较重要,它能使得git知道是谁提交的,提交时,这两种信息也会被存储到版本库中。

为了能使一些重要的信息进行高亮显示,可以这样配置:
git conig --global color.ui "always"


对于解决中文乱码问题
可以看下面这个图片中的方法,我在debian的命令行模式下进行的,没有中文输入法,因此没有实验。


more:
《pro git》
《git 权威指南》
  • 大小: 40.5 KB
分享到:
评论

相关推荐

    Git Learn Version Control with Git A step-by-step Ultimate beginners Guide epub

    Git Learn Version Control with Git A step-by-step Ultimate beginners Guide 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除

    Git Learn Version Control with Git A step-by-step Ultimate beginners 无水印pdf

    Git Learn Version Control with Git A step-by-step Ultimate beginners Guide 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn...

    Learn Version Control With Git A step-by-step course for the complete beginner

    Learn Version Control With Git A step-by-step course for the complete beginner(中文)。亚马逊接近满分书籍,中文版。图文并茂。学习Git的好资料。 从官网一页一页的复制过来的,花了不少时间。

    Git Learn Version Control with Git A step-by-step Ultimate beginners Guide azw3

    Git Learn Version Control with Git A step-by-step Ultimate beginners Guide 英文azw3 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除

    Learn Version Control with Git: A step-by-step course for the complete

    "Learn Version Control with Git" is a beginner-friendly step-by-step course. The book doesn't require a deep technical background. Instead, it's aimed at beginners of version control and/or ...

    Git GUI.pptx

    git图形化界面操作说明,从创建本地仓库到更新远程仓库,step by step 简单直观。zsbd

    Git.Mastering.Version.Control.pdf

    Its step-by-step approach with useful information makes this course the ultimate guide to understanding and mastering Git. This course will show the road to mastery example by example, while also ...

    Git-2.21.0-64-bit.zip

    * The "git log" command by default behaves as if the --mailmap option was given. UI, Workflows & Features * The "git fast-export/import" pair has been taught to handle commits with log messages...

    ssh框架整合step by step (springMVC + spring 5.0.4 + hibernate 5.0.12)

    ssh框架搭建step by step (springMVC + spring 5.0.4 + hibernate 5.0.12) 好久不弄web了, 周末心血来潮, 使用较新spirng/hibernate搭建一个ssh框架, 供有需要的同学参考/学习/使用. 使用eclipse开发, 搭建,分三步: ...

    Git Essencial 第二版 最新2017.11月

    This step-by-step guide is packed with examples to help you learn and work with Git’s internals Who This Book Is For If you are a software developer with little or no experience of versioning systems...

    intergitive:git的交互式教程

    intergitive -- Learn git by using it, with graphical interface! intergitive是一款互动式的 教学软体。它将逐步指引使用者实际操作git 的介面,并且即时检验操作的正确性来让学习的过程更有趣并富有成就感。关于...

    深入理解学习Git工作流(git-workflow-tutorial)

    行文中实践原则和操作示例并重,对于Git的资深玩家可以梳理思考提升,而新接触的同学,也可以跟着step-by-step操作来操练学习并在实际工作中上手使用。关于Git工作流主题,网上体系的中文资料不多,主要是零散的操作...

    react-step-by-step

    React逐步教程请使用git checkout tags/step-[n]移动第1步:最少的设置以开始使用react; 步骤2:基本jsx语法; 第三步:嵌套渲染; 步骤4:零件的道具和造型; 步骤5:无状态和有状态组件; 步骤6:生命周期方法; ...

    oo-basic-step-by-step-example-java:Java面向对象练习

    环境要求Java 8Intellij-IDEA如何开始在命令行中使用以下命令在用户本地任意目录下clone此题目库git clone repo_of_this_template运行测试:./gradlew test输出规范根据src/test/java/paractice_/README.md完成对应...

    gitbase web客户端;源代码{d} CE附带了一个新的UI,请在https://docs.sourced查看。科技/社区版/ - src-d / gitbase-web

    it allows to perform SQL queries on the Git history and the of the code itself.UsageWith Docker ComposeThe easiest way to run Gitbase Web and its dependencies is using .The first step is to populate a...

    Pro Git入门

    非常适合Git新手入门的书籍,里面的介绍很全面,大家共同进步……

    GitHub Essentials

    Unleash the power of collaborative development workflow using GitHub, one step at a time, About This Book, Effectively use GitHub by learning its key features that leverage the power of Git and make ...

    GitHub.Essentials.1783553715

    Explore the world of GitHub by following simple step-by-step real world scenarios accompanied by helpful, explanatory screenshots Who This Book Is For Intended for experienced or novice developers ...

    ogldev源码下载链接

    看到许多网友问这个,《OpenGL Step by Step/一步步学OpenGL》对应的源码下载链接

Global site tag (gtag.js) - Google Analytics