提交本地项目到GitHub

[email protected] MINGW64 /d/test

$ git init

Initialized empty Git repository in D:/test/.git/

[email protected] MINGW64 /d/test (master)

$ git remote add origin [email protected]:luhonggang/MyBatisPageHelper.git

[email protected] 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 = [email protected]:luhonggang/MyBatisPageHelper.git

fetch = +refs/heads/*:refs/remotes/origin/*

加完之后cat 查看 .git/config,这里会多出一个remote “origin”内容,这就是刚才添加的远程地址,也可以直接修改config来配置远程地址 

[email protected] MINGW64 /d/test (master)

$ git add -A

[email protected] MINGW64 /d/test (master)

$ git commit -m ‘first commit‘

On branch master

Initial commit

nothing to commit

[email protected] MINGW64 /d/test (master)

$ git push origin master

error: src refspec master does not match any.

error: failed to push some refs to ‘[email protected]:luhonggang/MyBatisPageHelper.git‘   -- 错误说明:  因为是第一次提交项目到当前库,所以第一次向当前库提交之前要先执行pull命令

[email protected] 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

[email protected] MINGW64 /d/test (master)

$ git push origin master

Everything up-to-date

[email protected] MINGW64 /d/test (master)

$ git add .   --- 提交当前目录下的所有文件到仓库

[email protected] 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

[email protected] 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 [email protected]:luhonggang/MyBatisPageHelper.git

ef857d4..f409043  master -> master

[email protected] MINGW64 /d/test (master)

$

时间: 2024-10-09 18:36:08

提交本地项目到GitHub的相关文章

命令行提交本地项目到github上

1.github账号要有. 2.配置ssh key ①  defaults write com.apple.finder AppleShowAllFiles -bool true     终端 显示隐藏文件(需要重新运行Finder). ② 点击桌面顶部菜单  前往>个人  看看自己电脑上有没有个 .ssh 的隐藏文件,有的话个人建议删除,新建个. ③  mkdir .ssh    终端新建个 .ssh文件 ④  cd .ssh   进入到刚才新建的.ssh文件目录下 ⑤  ssh-Keygen

Mac Android studio提交本地项目到Github 已经配置 SSH KEY

注册账号 https://github.com 在本地配置ssh key秘钥 配置好之后这里需要它 开始本地配置ssh key,首先查看本地电脑是否有配置过ssh,进入终端 敲入$ defaults write com.apple.finder AppleShowAllFiles -bool true ( 显示隐藏文件(需要重新运行Finder),因为.ssh是隐藏文件). 在桌面菜单在查看是否有这个文件 .ssh 的隐藏文件,有的话个人建议删除. 现在开始在本地配置ssh key mkdir

提交本地项目到GitHub上

1.配置ssh key ssh-keygen -t rsa -C "注册GitHub的邮箱" Enter file in which to save the key (/c/Users/yongfengnice/.ssh/id_rsa): //提示输入key保存的文件名称,默认是用户名下的.ssh文件夹下的id_rsa文件 Enter passphrase (empty for no passphrase): //提示输入密码,可以直接回车不输入任何密码 Enter same pass

半小时学会上传本地项目到github

一.注册github账号   首先需要注册一个github账号,注册地址:https://github.com 接着会来到这 然后会收到一封github发的邮件,进入邮箱验证 二.创建个人的github仓库  验证成功是这样的,然后点击创建仓库 也可以来到个人中心里创建仓库 创建完成好之后是这样子的.创建仓库的时候最好别用中文,不然你的仓库名就会显示 -  这样一条小横线. 三. 配置SSH keys 终端里输入显示隐藏文件:defaults write com.apple.finder App

使用Git上传本地项目到GitHub/Coding/码云

Git是一个开源的分布式版本控制系统,可以有效.高速的处理从很小到非常大的项目版本管理. 本文以利用Git上传本地项目到GitHub为例,为那些刚刚接触Git的新手提供使用Git上传本地项目到GitHub/Coding/码云的方法. 注册GitHub账号并安装Git 首先注册GitHub账号,并添加新项目. 下载并安装Git,安装路径可以自己修改,安装过程中的一些设置选择默认即可. 利用Git上传本地项目到GitHub 在本地项目文件夹中空白处右键单击选择"Git Bash Here"

github提交本地项目

最近想把项目放到github上去,上网找了些资料终于成功了,记录下. 0,安装msysgit后,进入本地仓库目录,启动git Bash 1,把项目下载到本地git clone https://github.com/Moerjiana/XXX.git 2,进入项目所在目录cd xxx 3,把文件添加到代码库中,(.代表所有)git add . 4,提交到本地的版本控制库里,""中为本机提交的说明git commit -m "changes log" 5,将本地仓库提交

git上传本地项目到github

git软件下载地址:https://git-scm.com/download/ 1. 在GitHub上建立项目登录GitHub后,你可以在右边靠中那里找到一个按钮“New Repository”,点击过后,填入项目名称.说明和网址过后就可以创建了,然后会出现一个提示页面,记下类似[email protected]:XXX/XXX.git的地址,这个就是你这个项目的地址了. 2.配置Git以及上传代码 如果是Windows下,选择Git Bash,在命令行中完成一切git config --glo

Eclipse4.4设备egit插件提交本地项目代码到远程仓库

一.设备egit 打开Eclipse的Marketplace.在搜索框中输入egit就可以,能够看到Eclipse4.4已经默认安装了egit,当然假设有新版本号的egit公布的话,也能够在下图上点击Update更新就可以,还能够点击Uninstall卸载该插件 二.配置git 在Eclipse中的项目上右击选择team->share project 配置好本地仓库的路径之后,例如以下图所看到的 点击Finish之后,项目上面能够看到非常多的问号,这表示文件处于untracked状态.还没提交,

Eclipse4.4安装egit插件提交本地项目代码到远程仓库

一.安装egit 打开Eclipse的Marketplace,在搜索框中输入egit即可,可以看到Eclipse4.4已经默认安装了egit,当然如果有新版本的egit发布的话,也可以在下图上点击Update更新即可,还可以点击Uninstall卸载该插件 二.配置git 在Eclipse中的项目上右击选择team->share project 配置好本地仓库的路径之后,如下图所示 点击Finish之后,项目上面可以看到很多的问号,这表示文件处于untracked状态,还没提交,这时候可以发现E