git回退取消文件的跟踪

摘要: 今天用git把本地实现了功能的代码 提交到了本地版本库,然后又提交了远程版本库,一不小心把配置文件也提交了上去,想要取消对配置文件的跟踪,经过探索终于成功了,步骤如下:回退前:退回到上一步:[plain]view plaincopygitreset--softHEAD~1删除本地版本库(不删除工作区... 阅读全文
posted @ 2015-02-05 11:18 striveLee 阅读(131) 评论(0) 推荐(0)

CI获取自定义配置文件中的二维配置数组

摘要: CI获取自定义配置文件中的二维配置数组:如:在admin.php配置文件中有如下配置:$config['admin_menu'][] = array( 'name' => '商品管理', 'c' => 'goods', 'a' => 'lists', 'icon'=>' ic... 阅读全文
posted @ 2015-02-05 11:08 striveLee 阅读(525) 评论(0) 推荐(0)

单点登录配置步骤

摘要: 配置key首先创建新的KEYssh-keygen -t rsa -C "your_email@youremail.com"Creates a new ssh key using the provided email Generating public/private rsa key pair.#此处... 阅读全文
posted @ 2015-02-05 11:07 striveLee 阅读(420) 评论(0) 推荐(0)

Git学习笔记

摘要: 1、创建目录:/a/b/c[root@centos demo]# mkdir -p a/b/c2、显示版本库.git目录所在的位置[root@centos c]# git rev-parse --git-dir/path/to/my/workspace/demo/.git3、显示工作区根目录:[ro... 阅读全文
posted @ 2015-02-05 11:06 striveLee 阅读(322) 评论(0) 推荐(0)

Git从创建到推送到远程版本库

摘要: 1、创建一个新的文件夹,并进入到该文件夹里,使用命令:git init来创建新的git仓库;2、获取钩子(每次git init之后都要一次): [root@centos activity.mycihi.cn]# scp -p -P 8849 lining@114.215.120.180:hooks/... 阅读全文
posted @ 2015-02-05 11:03 striveLee 阅读(415) 评论(0) 推荐(0)

git在本地创建工作空间并从远程版本库获取代码

摘要: 1、创建一个新的文件夹:[root@centos http]# mkdir activityTestLee2、进入该文件夹[root@centos http]# cd activityTestLee3、创建本地版本库:[root@centos activityTestLee]# git initIn... 阅读全文
posted @ 2015-02-05 11:01 striveLee 阅读(796) 评论(0) 推荐(0)