Error

C++博客 首页 新随笔 联系 聚合 管理
  217 Posts :: 61 Stories :: 32 Comments :: 0 Trackbacks
克隆远程git数据到本地
git clone [remoter git path] [destination path]

配置git filter
emacs git_path/.gitignore
文件内容如下
*.*
!*.c
!*.cpp
!*.txt
!*.hpp
!.inl
!.ipp
!*.cmake
!.gitignore

常用git配置
 git config --list  列出当前全部配置
///////////////////
git config 命令详解
 git config
usage: git config [options]
Config file location
    --global              use global config file
    --system              use system config file
    --local               use repository config file
    -f, --file <file>     use given config file
Action
    --get                 get value: name [value-regex]
    --get-all             get all values: key [value-regex]
    --get-regexp          get values for regexp: name-regex [value-regex]
    --replace-all         replace all matching variables: name value [value_regex]
    --add                 adds a new variable: name value
    --unset               removes a variable: name [value-regex]
    --unset-all           removes all matches: name [value-regex]
    --rename-section      rename section: old-name new-name
    --remove-section      remove a section: name
    -l, --list            list all
    -e, --edit            opens an editor
    --get-color <slot>    find the color configured: [default]
    --get-colorbool <slot>
                          find the color setting: [stdout-is-tty]
Type
    --bool                value is "true" or "false"
    --int                 value is decimal number
    --bool-or-int         value is --bool or --int
    --path                value is a path (file or directory name)
Other
    -z, --null            terminate values with NUL byte
///////////////////
关于配置还可以更加直接一点,直接编辑.git/config文件
这里还有一个技巧就是配置remote url的时候
https://[user name]:[pass world]@git01.codeplex.com/boostusingcmake
这样就相当于“记住帐号密码”
posted on 2013-03-30 13:57 Enic 阅读(1640) 评论(0)  编辑 收藏 引用 所属分类: git

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理