[ GIT ] GIT tip : A simple .gitconfig file

reference : http://fle.github.io/git-tip-a-simple-gitconfig-file.html

As several friends have asked me this, here is my ~/.gitconfig base file.

Nothing special, just a few aliases and some syntax highlighting :).

[user]
        name = Florent Lebreton
        email = [email protected]
[color]
        ui = auto

[color "branch"]
        current = yellow reverse
        local = yellow
        remote = green

[color "diff"]
        meta = yellow bold
        frag = magenta bold
        old = red bold
        new = green bold
        whitespace = red reverse

[color "status"]
        added = yellow
        changed = green
        untracked = cyan

[core]
        whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol

[alias]
        st = status
        ci = commit
        br = branch
        co = checkout
        df = diff
        dc = diff --cached
        lg = log -p
        pr = pull --rebase
        gr = log --all --graph --decorate --oneline
时间: 2024-07-31 12:23:30

[ GIT ] GIT tip : A simple .gitconfig file的相关文章

git报ssh variant 'simple' does not support setting port解决办法

解决办法 在git bash中输入命令 1 git config --global ssh.variant ssh 照着来一遍,肯定解决 git报ssh variant 'simple' does not support setting port解决办法 原文地址:https://www.cnblogs.com/xgjblog/p/9755080.html

[Git] git remote

命令 git remote 语法 git remote [-v | --verbose] git remote add [-t <branch>] [-m <master>] [-f] [--[no-]tags] [--mirror=<fetch|push>] <name> <url> git remote rename <old> <new> git remote remove <name> git remo

Git git rebase 使用

原文:http://gitbook.liuhui998.com/4_2.html 一.基本 git rebase用于把一个分支的修改合并到当前分支. 假设你现在基于远程分支"origin",创建一个叫"mywork"的分支. $ git checkout -b mywork origin 假设远程分支"origin"已经有了2个提交,如图 现在我们在这个分支做一些修改,然后生成两个提交(commit). $ vi file.txt $ git c

初探Git git基本用法

Git 是当前最流行的版本控制程序之一,文本包含了 Git 的一些基本用法 创建 git 仓库 初始化 git 仓库 mkdir project # 创建项目目录 cd project # 进入到项目目录 git init # 初始化 git 仓库.此命令会在当前目录新建一个 .git 目录,用于存储 git 仓库的相关信息 初始化提交 touch README git add . # 将当前目录添加到 git 仓库中, 使用 git add -A 则是添加所有改动的文档 git commit

[Git] Git操作命令

git配置 git config --global user.name "Your Name" git config --global user.email "[email protected]" 创建文件夹与进入 mkdir learngit cd learngit 设置当前位置为git仓库 git init 添加至仓库(又名版本库) git add readme.md git commit -m "wrote a readme file for com

Git -&gt; git log笔记

显示提交关系图 git log --graph --oneline 显示最近的几条日志 git log -3 --pretty=oneline 显示每次提交的具体改动 git log -p -1 显示每次提交的变更概要 git log --state --oneline 定制输出 git log --pretty=raw -1 git log --pretty=fuller -1 git log --pretty=oneline -1Git -> git log笔记,布布扣,bubuko.com

GIT -&gt; git rev-parse 笔记

显示分支 $git rev-parse --symbolic --branches 显示里程碑 $git rev-parse --symbolic --tags 显示引用 $git rev-parse --symbolic --glob=refs/* refs/heads/master refs/remotes/origin/HEAD refs/remotes/origin/master 显示SHA1值 $git rev-parse HEAD $git rev-parse master refs

Git介绍,安装,Git+Git flow使用

特点: 1.可以快速的切换项目分支. 2.回滚某个分支的版本. 3.每次切换分支不用修改配置文件 (因项目而定义) 4.不用 新建/切换 虚拟目录/域名.因为都是在同一个目录下进行. 5.上面这些对你有吸引力吗? 喜欢那就参与进来吧.  什么是Git  Git是Linux Torvalds为了帮助管理 Linux,内核开发而开发的一个开放源码的版本控制软件. 特点是快速,开源,分布式管理系统.  它可以对代码的修改进行回滚,将错误的代码剔除.  或者简单地跟踪哪些人修改了代码的哪些行的内容. 对

can&#39;t start Git: git.exe

can't start Git: git.exe :不能启动Git 这是因为Git的可执行文件的路径不正确,需要手动设置,. 找到设置Git的窗口 然后修改一下路径就行了 点击OK就可以了. can't start Git: git.exe