美文网首页
使用GitHub托管项目

使用GitHub托管项目

作者: 去年17 | 来源:发表于2017-06-06 11:13 被阅读107次

引言

使用GitHub的好处捡干的说:

  1. 在线托管代码
  2. 使用git进行源码管理

步骤:

  1. 注册github
  2. 上传代码到github
    上传种类
  3. 在Github 上创建项目,clone到本地
  4. 本地有源码,将本地代码push到对应地址
  5. 初始化本地git仓库
~~~

$ git init
~~~
1. 转移到远程服务托管,这里使用github

#(xxx.git 是你的github实际项目所在地)
$ git remote add origin https://github.com/xx/xxx.git 
# 远程拉取项目到本地
git pull origin master
# 同步本地项目到远程
git add -A
# 提交
git commit -m 'messge here'
#同步上传到github
git push origin master
# 移除不想托管的文件或文件夹使用(这是移除bower_components文件夹及下面所有的托管)
git rm -r --cached bower_componets/\* 
# git win下保存帐号密码
+git config --global credential.helper winstore

结语

相关文章

  • 使用GitHub托管项目

    引言 使用GitHub的好处捡干的说: 在线托管代码 使用git进行源码管理 步骤: 注册github 上传代码到...

  • Github 使用学习

    Github 使用学习 1、使用Github 1.1 目的 借助 github 托管项目代码 1.2 基本概念 仓...

  • 使用github

    目的:借助github托管项目代码 1、使用github(目的、基本概念、注册账号) 仓库(Repository)...

  • 2017-7-23

    收获 GitHub 了解了Github的具体作用 会使用Github托管自己的项目 JavaScript -号的作...

  • git -- 本地项目托管到github

    目前,项目管理除了SVN还可以使用Git,下面介绍怎么将项目托管到GitHub。 注册GitHub账号 前往Git...

  • github项目托管

    git clone 接着将先前记录下来的地址复制到后面 git add . git commit -m "chan...

  • 项目托管 GitHub

    一、准备 二、创建版本仓 三、远程版本库地址 四、远程版本克隆 1.Git Bash 切换到 工程目录下 2.远程...

  • github托管项目

    由于github 2021年8月13日之后无法使用用户名和密码去托管项目改为用OAuth token的方式所以,记...

  • github简述

    一、github基本概念 使用目的:借助GitHub托管项目代码 1.仓库(Respository) 2.收藏(S...

  • React 源码分析如何开始、如何查看、如何下载

    React 项目托管在 GitHub[https://github.com/facebook/react/]项目开...

网友评论

      本文标题:使用GitHub托管项目

      本文链接:https://www.haomeiwen.com/subject/vjruzttx.html