当前位置: 首页 > news >正文

使用dw做门户网站免费个人博客网站模板下载

使用dw做门户网站,免费个人博客网站模板下载,怎么找网站的根目录,国外企业网络平台Linux上安装和使用git到gitoschina和github上_亲测 git介绍与在linux上安装创建SSHkey在git-oschina使用maven-oschina使用在github使用maven-github使用组织与仓库 【git介绍与在linux上安装】 Git是一款免费、开源的分布式版本控制系统,用于敏捷高效地处理任何…

Linux上安装和使用git到gitoschina和github上_亲测

  1. git介绍与在linux上安装
  2. 创建SSHkey
  3. 在git-oschina使用
  4. maven-oschina使用
  5. 在github使用
  6. maven-github使用
  7. 组织与仓库

git介绍与在linux上安装

Git是一款免费、开源的分布式版本控制系统,用于敏捷高效地处理任何或小或大的项目。
相关介绍可以参考 <百度百科> 的说明,
或参考很好的廖雪峰资料:http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/001373962845513aefd77a99f4145f0a2c7a7ca057e7570000

git oschina 安装git

参考: http://git.oschina.net/oschina/git-osc/wikis/%E5%B8%AE%E5%8A%A9#ssh-keys

在Linux上安装Git:

$ git  #提示git没有安装,还会告诉你如何安装git
$ sudo apt-get install git #Ubuntu安装
$ yum install git #CentOS安装
$ git version #查看版本#git配置:你需要告诉git你的名字和email,这个名字会出现在你的提交记录中.设置编辑器为vim    git config --global user.name "beyond"
git config --global user.email "email@qq.com"
git config --global core.editor vim

参考: http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/001374385852170d9c7adf13c30429b9660d0eb689dd43a000

github 安装git

在Linux上安装Git:

$ git  #提示git没有安装,还会告诉你如何安装git
$ sudo apt-get install git #Ubuntu安装
$ yum install git #CentOS安装
$ git version #查看版本#git配置:你需要告诉git你的名字和email,这个名字会出现在你的提交记录中. 设置编辑器为vim   git config --global user.name "beyond"
git config --global user.email "email@qq.com"
git config --global core.editor vim

创建SSHkey

git oschina 创建SSHkey

在用户主目录下,看看有没有.ssh目录,如果有,再看看这个目录下有没有id_rsa和id_rsa.pub这两个文件,如果已经有了,可直接跳到下一步。

$ ssh-keygen -t rsa -C "email@qq.com" //没有id_rsa和id_rsa.pub时
然后一路回车,使用默认值即可,由于这个Key也不是用于军事目的,所以也无需设置密码。$ cat .ssh/id_rsa.pub     #复制ssh公钥
添加ssh公钥,使用SSH公钥可以让你在你的电脑和码云通讯的时候使用安全连接(git的remote要使用SSH地址)http://git.oschina.net 个人资料-->SSH公钥  添加公钥$ ssh -T git@git.oschina.net  #测试添加成功没有
Welcome to Git@OSC, beyond!  证明添加成功
github 创建SSHkey

在用户主目录下,看看有没有.ssh目录,如果有,再看看这个目录下有没有id_rsa和id_rsa.pub这两个文件,如果已经有了,可直接跳到下一步。

$ ssh-keygen -t rsa -C "email@qq.com" //没有id_rsa和id_rsa.pub时
然后一路回车,使用默认值即可,由于这个Key也不是用于军事目的,所以也无需设置密码。$ cat .ssh/id_rsa.pub     #复制ssh公钥
添加ssh公钥,使用SSH公钥可以让你在你的电脑和github使用安全连接(使用SSH地址)https://github.com   profile-->settings-->SSH and GPG keys --> New SSH key$ ssh -T git@github.com  #测试添加成功没有
Hi beyondyinjl! You've successfully authenticated......  证明添加成功

在git-oschina使用

mkdir gitoschina-repo
cd gitoschina-repo#mkdir maven-repository#cd maven-repository#git init#touch readme.md#git add readme.md#git commit -m "first commit"#git remote add origin git@git.oschina.net:beyondyinjl/maven-repository.git#因为设置了sshkey上面是以ssh提交,不需要输入用户名密码,这是用https提交:git remote add origin https://git.oschina.net/beyondyinjl/maven-repository.git#git push -u origin master //提交到远程仓库上,当远程仓库为空时,可以这样提交。#当远程仓库不为空时,会报错,需要先下载clone下来,把需要提交的文件放到仓库下在提交
git clone https://git.oschina.net/beyondyinjl/maven-repository.git
git add --all
git commit -m "test"
git pushgit pull #下载

maven里pom.xml配置看 common-tool-task项目

    <distributionManagement><repository><id>java-maven-repository</id><name>Internal Repository</name><url>file://${project.basedir}/../../gitoschina-repo/maven-repository/releases</url><!-- 把jar包打到指定目录下,方便提交--></repository></distributionManagement>

mvn clean deploy 使用maven打jar包到 maven-repository目录下 后提交到远程仓库

git add --all
git commit -m "task"
git push

提交到私人仓库:http://git.oschina.net/beyondyinjl/maven-repository

新建项目:common-tool-task

git.oschina.net菜单栏+号–>新建项目:common-tool-task

cd common-tool-task
git init
git add src/* pom.xml 
git commit -m "first commit"
git remote add origin git@git.oschina.net:beyondyinjl/common-tool-task.git
git push -u origin master  #提交到git.oschina上

maven-oschina使用

2013年9月开源中国Maven库(maven.oschina.net)上线:http://www.oschina.net/news/44282/oschina-maven-repository?p=17

2015年6月开源中国Maven镜像暂停服务通知:http://www.oschina.net/news/63762/maven-oschina-paused
http://maven.oschina.net/ 不能访问了

    像网上免费提供服务的这类太不稳定了,说不定哪天说停就停了,这个上面总结的资料也要备份一下了。像那些网盘一样,酷盘刚开始说永久免费,到头来还是关闭了。资料多备份几个地方,保险一点。

学习OSC Maven仓库
http://my.oschina.net/huangyong/blog/180189
http://www.baikeyang.com/code/985.html

Maven项目下载 从自己的私人仓库下载:刚刚上面common-tool-task项目 上传的那个jar包

        <dependency><groupId>common.tool</groupId><artifactId>tool-task</artifactId><version>0.0.2</version></dependency><repositories><repository><id>tool-maven-repository</id><url>http://git.oschina.net/beyondyinjl/maven-repository/raw/master/releases</url></repository>
</repositories>

在github使用

mkdir github-repo
cd github-repo#mkdir maven-repository#cd maven-repository#git init #初始化一个仓库#touch readme.md#git add readme.md  #需要提交的文件 #git commit -m "first commit"  #提交的说明#git remote add origin git@github.com:javaRepository/maven-repository.git#关联远程github仓库 这里使用SSH方式,前提是绑定了ssh key文件。因为设置了sshkey上面是以ssh提交,不需要输入用户名密码,这是用https提交:git remote add origin https://github.com/javaRepository/maven-repository.git#git push -u origin master //提交到远程仓库上,当远程仓库为空时,可以这样提交。#当远程仓库不为空时,会报错,需要先下载clone下来,把需要提交的文件放到仓库下在提交git clone https://github.com/javaRepository/maven-repository.git
git add --all
git commit -m "test"
git pushgit pull #下载

网上资料:
http://blog.csdn.net/hengyunabc/article/details/47308913
http://www.lxway.com/68285961.htm

maven里pom.xml配置看 common-tool-task项目

    <distributionManagement><repository><id>java-maven-repository</id><name>Internal Repository</name><url>file://${project.basedir}/../../github-repo/maven-repository/releases</url><!-- 把jar包打到指定目录下,方便提交--></repository></distributionManagement>

mvn clean deploy 使用maven打jar包到 maven-repository目录下 后提交到远程仓库

git add --all
git commit -m "task"
git push

提交到私人仓库:https://github.com/javaRepository/maven-repository

在javaRepository组织下新建项目:common-tool-task

github.com/javaRepository–>New repository:common-tool-task

cd common-tool-task
git init
git add src/* pom.xml 
git commit -m "first commit"
git remote add origin git@github.com:javaRepository/common-tool-task.git
git push -u origin master  #提交到github上

maven-github使用

    像网上免费提供服务的这类太不稳定了(github是全世界开源人都在用,很多著名开源项目都在上面,比较稳定,但是国外的网站,网络慢),说不定哪天说停就停了,这个上面总结的资料也要备份一下了。像那些网盘一样,酷盘刚开始说永久免费,到头来还是关闭了。资料多备份几个地方,保险一点。

Maven项目下载 从自己的私人仓库下载:刚刚上面common-tool-task项目 上传的那个jar包

        <dependency><groupId>common.tool</groupId><artifactId>tool-task</artifactId><version>0.0.2</version></dependency><repositories><repository><id>tool-maven-repository</id><url>https://raw.github.com/javaRepository/maven-repository/master/releases</url></repository>
</repositories>         

组织与仓库

git-oschina中
菜单栏里–>+号–>新建项目 或 新建组识
  • 新建项目说明:分为公有的Public和私有的Private(都是免费的)项目。
    项目–>管理–>项目成员管理。可以多人开发这一个项目,邀请开发人员。
    比如:Public项目:common-tool-task 和 maven-repository
    Private项目:study

  • 新建组识说明:分为公开组织和不公开组织。组织信息–>组织设置–>编辑组织
    组织下面可以新建多个项目,组员对组织下的每个项目都有权限操作。
    组织–>成员管理.可以邀请多人加入组织
    比如:learningRepository 和 javaRepository组织

github中
菜单栏里–>+号–>New repository 或 New organization
  • New repository说明:分为公有的Public(免费的)和私有的Private(需要收费的),所以我都新建的Public免费项目。
    项目–>Settings–>collaborators.邀请多人开发
    项目–>Settings–>最下面的Delete this repository 删除仓库

  • New organization说明:分为公有的Public(免费的)和私有的Private(需要收费的)组织,所以我都新建的Public免费组织。
    组织下面可以新建多个项目
    组织–>People.邀请多人加入组织
    比如:learningRepository 和 javaRepository组织,它们下面有很多项目。
    像af的java工具类都在JavaServerGroup组织下。

http://www.yayakq.cn/news/63023/

相关文章:

  • 怎么维护好网站手机app制作开发
  • 网站空间优惠网站制作教程百度云
  • 营销型网站案例易网拓网站开发合同审核要点
  • 网站备案撤销销售网站建设的会计分录
  • 泉州网站建设学徒招聘站建设 app开发网站
  • 网站如何做好内链做企业网站建设公司哪家好
  • 莱芜网站开发代理东营建设有限公司
  • 大型网站系统架构做公司网站有什么好处
  • 天津制作网站首页在网站上做送餐外卖需要哪些资质
  • 南阳做网站费用wordpress新建网页
  • 重庆知名网站制作公司枣阳网站开发
  • 美容养生wordpress商城模板优搜云seo
  • 宝山专业网站建设无代码建站软件
  • 网站建设 事项小程序制作一般多少钱
  • 孝感网站开发培训机构网页升级中紧急自动转跳中
  • 用阿里云服务器做自己购物网站做系统用什么网站好
  • 建设一个网站app需要多少钱做动漫网站用什么程序
  • 网站建设 方案 评价表网站设计模板代码
  • 广东石油化工建设集团网站画网站 模板
  • 宁波高端网站建设公司嘿客免费网站建设
  • 青岛网站建设官网关于网站建设的合同范本正规
  • 东莞网站建站推广贵阳做网站好的公司有哪些
  • 黄山网站建设哪家强企业建站的作用是什么
  • 太原网站制作维护电商网站建设案例
  • php网站怎么做post订单网站开发顺序
  • 网站建设技术网站建设浙江十大外贸公司排名
  • wordpress建电商网站企业注册登记
  • 绵阳住房和城乡建设厅官方网站公司静态网站模板
  • 防伪查询网站网站域名每年费用
  • 爱做的小说网站一般云主机可以做视频网站吗