dell@LHG MINGW64 /d/test
$ git init
Initialized empty Git repository in D:/test/.git/
dell@LHG MINGW64 /d/test (master)
$ git remote add origin git@github.com:luhonggang/MyBatisPageHelper.git
dell@LHG MINGW64 /d/test (master)
$ cat .git/config --查看本地config文件 ,多了remote信息
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
hideDotFiles = dotGitOnly
[remote "origin"]
url = git@github.com:luhonggang/MyBatisPageHelper.git
fetch = +refs/heads/*:refs/remotes/origin/*
加完之后cat 查看 .git/config,这里会多出一个remote “origin”内容,这就是刚才添加的远程地址,也可以直接修改config来配置远程地址 dell@LHG MINGW64 /d/test (master)
$ git add -A
dell@LHG MINGW64 /d/test (master)
$ git commit -m 'first commit'
On branch master
Initial commit
nothing to commit
dell@LHG MINGW64 /d/test (master)
$ git push origin master
error: src refspec master does not match any.
error: failed to push some refs to 'git@github.com:luhonggang/MyBatisPageHelper.git' -- 错误说明: 因为是第一次提交项目到当前库,所以第一次向当前库提交之前要先执行pull命令
dell@LHG MINGW64 /d/test (master)
$ git pull origin master ---拉取仓库上所有的数据
Warning: Permanently added the RSA host key for IP address '192.30.255.112' to the list of known hosts.
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (4/4), done.
From github.com:luhonggang/MyBatisPageHelper
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
dell@LHG MINGW64 /d/test (master)
$ git push origin master
Everything up-to-date
dell@LHG MINGW64 /d/test (master)
$ git add . --- 提交当前目录下的所有文件到仓库
dell@LHG MINGW64 /d/test (master)
$ git commit -m 'second commit' -- 提交注释
[master f409043] second commit
144 files changed, 15133 insertions(+)
create mode 100644 Mybatis_PageHelper/.gitignore
create mode 100644 Mybatis_PageHelper/LICENSE
create mode 100644 Mybatis_PageHelper/README.md
create mode 100644 Mybatis_PageHelper/pom.xml
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/Constant.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/Dialect.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/ISelect.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/MSUtils.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/Page.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/PageHelper.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/PageInfo.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/SqlUtil.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/SqlUtilConfig.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/StringUtil.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/cache/Cache.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/cache/CacheFactory.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/cache/GuavaCache.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/cache/SimpleCache.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/parser/OrderByParser.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/parser/Parser.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/parser/SqlParser.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/parser/SqlServer.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/parser/impl/AbstractParser.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/parser/impl/CacheParser.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/parser/impl/Db2Parser.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/parser/impl/H2Parser.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/parser/impl/HsqldbParser.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/parser/impl/InformixParser.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/parser/impl/MysqlParser.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/parser/impl/OracleParser.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/parser/impl/PostgreSQLParser.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/parser/impl/SqlServer2012Dialect.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/parser/impl/SqlServerParser.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/sqlsource/OrderByStaticSqlSource.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/sqlsource/PageDynamicSqlSource.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/sqlsource/PageProviderSqlSource.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/sqlsource/PageRawSqlSource.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/sqlsource/PageSqlSource.java
create mode 100644 Mybatis_PageHelper/src/main/java/com/github/pagehelper/sqlsource/PageStaticSqlSource.java
create mode 100644 Mybatis_PageHelper/src/test/java/Ognl.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/mapper/CountryMapper.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/mapper/CountryMapper.xml
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/mapper/ProviderMethod.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/model/Country.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/model/CountryExample.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/model/CountryQueryModel.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/parser/SqlServerTest.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/sql/FunctionCountTest.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/sql/SqlServerTest.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/sql/SqlTest.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/ArgumentsMapTest.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/ArgumentsObjTest.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/OffsetTest.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/PageHelperTest.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/PageInfoTest.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/RemoveOrderTest.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/TestDistinct.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/TestISelect.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/TestIntMax.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/TestLike.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/TestNamespaceMap.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/annotations/TestAnnotations.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/cache/CacheTest.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/cache/SecondCacheTest.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/count/TestGroupBy.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/count/TestSelectItems.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/dynamic/CacheTest.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/dynamic/TestDynamicChoose.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/dynamic/TestDynamicForeach.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/dynamic/TestDynamicIf.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/dynamic/TestDynamicIf2.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/dynamic/TestDynamicIfOrder.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/dynamic/TestDynamicIfTwoList.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/dynamic/TestDynamicWhere.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/dynamic/Where.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/example/TestExample.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/parameter/TestParameterArray.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/parameter/TestParameterList.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/parameter/TestParameterMap.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/parameter/TestParameterNone.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/parameter/TestParameterOne.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/provider/TestProvider.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/sql/TestExists.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/sql/TestLeftjoin.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/sql/TestUnion.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/basic/sql/TestWith.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/namespace/BasicTest.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/pagesize/PageSizeLessThenOrEqualZeroTest.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/pagesize/PageSizeZeroTest.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/reasonable/PageTest.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/test/rowbounds/RowBoundsTest.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/util/MybatisHelper.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/util/MybatisPageSizeZeroHelper.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/util/MybatisReasonableHelper.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/util/MybatisRowBoundsHelper.java
create mode 100644 Mybatis_PageHelper/src/test/java/com/github/pagehelper/util/TestUtil.java
create mode 100644 Mybatis_PageHelper/src/test/resources/db2/mybatis-config-pagesizezero.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/db2/mybatis-config-reasonable.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/db2/mybatis-config-rowbounds.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/db2/mybatis-config.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/h2/h2.sql
create mode 100644 Mybatis_PageHelper/src/test/resources/h2/mybatis-config-pagesizezero.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/h2/mybatis-config-reasonable.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/h2/mybatis-config-rowbounds.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/h2/mybatis-config.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/hsqldb/hsqldb.sql
create mode 100644 Mybatis_PageHelper/src/test/resources/hsqldb/mybatis-config-pagesizezero.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/hsqldb/mybatis-config-reasonable.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/hsqldb/mybatis-config-rowbounds.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/hsqldb/mybatis-config.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/log4j.properties
create mode 100644 Mybatis_PageHelper/src/test/resources/mariadb/mariadb.sql
create mode 100644 Mybatis_PageHelper/src/test/resources/mariadb/mybatis-config-pagesizezero.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/mariadb/mybatis-config-reasonable.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/mariadb/mybatis-config-rowbounds.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/mariadb/mybatis-config.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/mysql/mybatis-config-pagesizezero.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/mysql/mybatis-config-reasonable.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/mysql/mybatis-config-rowbounds.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/mysql/mybatis-config.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/mysql/mysql.sql
create mode 100644 Mybatis_PageHelper/src/test/resources/oracle/mybatis-config-pagesizezero.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/oracle/mybatis-config-reasonable.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/oracle/mybatis-config-rowbounds.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/oracle/mybatis-config.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/oracle/oracle.sql
create mode 100644 Mybatis_PageHelper/src/test/resources/orderby/hsqldb.sql
create mode 100644 Mybatis_PageHelper/src/test/resources/orderby/mybatis-config.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/postgresql/mybatis-config-pagesizezero.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/postgresql/mybatis-config-reasonable.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/postgresql/mybatis-config-rowbounds.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/postgresql/mybatis-config.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/postgresql/postgresql.sql
create mode 100644 Mybatis_PageHelper/src/test/resources/sqlserver/mybatis-config-pagesizezero.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/sqlserver/mybatis-config-reasonable.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/sqlserver/mybatis-config-rowbounds.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/sqlserver/mybatis-config.xml
create mode 100644 Mybatis_PageHelper/src/test/resources/test.properties
create mode 100644 Mybatis_PageHelper/wikis/Changelog.markdown
create mode 100644 Mybatis_PageHelper/wikis/Home.markdown
create mode 100644 Mybatis_PageHelper/wikis/HowToUse.markdown
create mode 100644 Mybatis_PageHelper/wikis/Important.markdown
create mode 100644 Mybatis_PageHelper/wikis/Test.markdown
create mode 100644 Mybatis_PageHelper/wikis/UseOrderBy.md
dell@LHG MINGW64 /d/test (master)
$ git push origin master -- 推送本地项目到远程仓库
Counting objects: 190, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (177/177), done.
Writing objects: 100% (190/190), 109.31 KiB | 0 bytes/s, done.
Total 190 (delta 99), reused 0 (delta 0)
remote: Resolving deltas: 100% (99/99), done.
To git@github.com:luhonggang/MyBatisPageHelper.git
ef857d4..f409043 master -> master
dell@LHG MINGW64 /d/test (master)
使用git bash 提交本地项目到github仓库步骤, 需要配置ssh 详解 http://blog.csdn.net/top_code/article/details/50241999.