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

网站建设推广襄樊百度关键字优化价格

网站建设推广襄樊,百度关键字优化价格,wordpress 响应式模板下载,罗湖外贸网站建设文章目录序言:版本控制分类一、Git环境配置下载卸载安装二、常用linux命令三、基本配置四、Git基本操作0.原理图1.项目创建及克隆方式一:本地仓库搭建方式二:克隆远程仓库2.文件操作3.配置ssh公钥4.分支5.push代码参考序言:版本控…

文章目录

  • 序言:版本控制分类
  • 一、Git环境配置
    • 下载
    • 卸载
    • 安装
  • 二、常用linux命令
  • 三、基本配置
  • 四、Git基本操作
    • 0.原理图
    • 1.项目创建及克隆
      • 方式一:本地仓库搭建
      • 方式二:克隆远程仓库
    • 2.文件操作
    • 3.配置ssh公钥
    • 4.分支
    • 5.push代码
  • 参考

序言:版本控制分类

使用版本管理工具,可以实现 版本管理、多人协作、工作量统计、跟进软件开发过程 等等。

1 本地版本控制
在本地记录每次文件的更新。
缺点:缺乏组织性2 集中式版本控制SVN
所有的版本都放在一个单独的服务器上,每个开发人员直接从服务器上进行读写。
缺点:服务器挂了咋办,哪怕定期备份,但还是会有一定程度上的数据丢失。联网才能工作。3 分布式版本控制Git
每个用户电脑上都同步了所有版本,可以在离线时本地提交,等联网了push到服务器上去。
优点:只要有一个用户的设备没有问题,就可以恢复所有的数据。
缺点:占用空间。

一、Git环境配置

下载

官网下载太慢了,还是镜像快,直接下载最新版exe:http://npm.taobao.org/mirrors/git-for-windows/

卸载

由于我已经安装了Git,为了展示完整的过程,我先把它卸载了:

1 删除相关环境变量
2 控制面板中卸载Git工具

安装

打开下载的安装包,无脑下一步安装。
安装好后会有三个工具可供使用,Git Bash是linux风格的命令行, 最常用 ;Git CMD是windows风格的命令行;Git GUI是图形化操作界面。

在这里插入图片描述

二、常用linux命令

在这里插入图片描述

三、基本配置

  • 查看配置:
git config -l
  • 删除配置:

直接操作安装目录下的配置文件即可:

D:\setup\Git\etc\gitconfig --system 系统配置
C:\Users\14095.gitconfig --global 用户全局

  • 配置github名称和邮箱:
git config --global user.name "xiaolongxia291"
git config --global user.email "**.com"

四、Git基本操作

0.原理图

在这里插入图片描述

1.项目创建及克隆

注意工作目录尽量不要有中文。

一些重要命令如下:

在这里插入图片描述

方式一:本地仓库搭建

- 1 创建一个文件夹
- 2 进入文件夹,按住shift然后鼠标右键选中Git bash
- 3 执行初始化工作空间命令:git init
初始化成功会显示Initialized empty Git repository in D:/0 project/git-demo/.git/

方式二:克隆远程仓库

  • 先去github远程仓库上粘贴url:

在这里插入图片描述

  • 然后在工作目录下的git bash中执行命令:
git clone 粘贴的url
# 执行成功会显示:
Cloning into 'enterprise-programming-question-bank'...
remote: Enumerating objects: 107, done.
remote: Counting objects: 100% (107/107), done.
remote: Compressing objects: 100% (59/59), done.
remote: Total 107 (delta 28), reused 89 (delta 18), pack-reused 0
Receiving objects: 100% (107/107), 73.56 KiB | 308.00 KiB/s, done.
Resolving deltas: 100% (28/28), done.

2.文件操作

  • 添加到暂存区:
# 把所有文件添加到暂存区
git add .
# 添加指定的文件到暂存区
git add xx文件
  • 将暂存区内容commit到本地仓库:
git commit -m "提交信息"
  • 忽略文件:

在.gitignore中配置,示例:

README.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/### VS Code ###
.vscode/

3.配置ssh公钥

  • 首先,进入这个目录:C:\Users\14095.ssh,然后操作:
# 执行命令生成公钥,全部回车
ssh-keygen
  • 用vscode打开id_rsa.pub,复制粘贴里面的公钥

  • 然后去github上添加公钥https://github.com/settings/keys:

在这里插入图片描述

4.分支

github在这看分支。分支说白了就是用来管理版本的,不同分支互不打扰,可以并行执行。
在这里插入图片描述

  • 分支命令:

注意,要先commit才能操作分支。

# 本地
git branch
# 远程
git branch -r
# 创建一个分支
git branch 分支名
# 删除一个分支
git branch -d 分支名
# 切换到分支
git checkout 分支名
# 删除远程分支
git push origin --delete 分支名
git branch -dr 分支名

5.push代码

git push -u origin 分支名

【完结!】

参考

教程:跳转


文章转载自:
http://dinnconostologic.tpps.cn
http://dinncoverification.tpps.cn
http://dinncocopolymerization.tpps.cn
http://dinncoabram.tpps.cn
http://dinncocosmonette.tpps.cn
http://dinncoaccra.tpps.cn
http://dinncobandog.tpps.cn
http://dinncoretransformation.tpps.cn
http://dinncothickly.tpps.cn
http://dinncoembouchure.tpps.cn
http://dinncodagoba.tpps.cn
http://dinncostigmatization.tpps.cn
http://dinncokiska.tpps.cn
http://dinncotransparentize.tpps.cn
http://dinncophlegmon.tpps.cn
http://dinncofeaturely.tpps.cn
http://dinncodeficient.tpps.cn
http://dinncoghent.tpps.cn
http://dinncosalve.tpps.cn
http://dinncolipidic.tpps.cn
http://dinnconondescript.tpps.cn
http://dinncokoromiko.tpps.cn
http://dinncoictal.tpps.cn
http://dinncoepsilon.tpps.cn
http://dinncopalatal.tpps.cn
http://dinncovaporise.tpps.cn
http://dinncochelator.tpps.cn
http://dinnconarrater.tpps.cn
http://dinncobipedal.tpps.cn
http://dinncovillage.tpps.cn
http://dinncovillainous.tpps.cn
http://dinncopeloid.tpps.cn
http://dinncodigestibility.tpps.cn
http://dinncoregistry.tpps.cn
http://dinncocharlock.tpps.cn
http://dinnconaturalness.tpps.cn
http://dinncoprocurance.tpps.cn
http://dinncowatery.tpps.cn
http://dinncochiasma.tpps.cn
http://dinncomiscolor.tpps.cn
http://dinncomonologist.tpps.cn
http://dinncoseaborne.tpps.cn
http://dinncounable.tpps.cn
http://dinncorosamund.tpps.cn
http://dinncopizzicato.tpps.cn
http://dinncocsma.tpps.cn
http://dinncoakita.tpps.cn
http://dinncorevealed.tpps.cn
http://dinncoworkaholism.tpps.cn
http://dinncooutmoded.tpps.cn
http://dinncocologne.tpps.cn
http://dinncomissent.tpps.cn
http://dinncounification.tpps.cn
http://dinncocoexist.tpps.cn
http://dinncometagon.tpps.cn
http://dinncosinglechip.tpps.cn
http://dinncoheterocotylus.tpps.cn
http://dinncoritardando.tpps.cn
http://dinncoseparator.tpps.cn
http://dinncohandjob.tpps.cn
http://dinncoflavonol.tpps.cn
http://dinncochalutz.tpps.cn
http://dinncodesex.tpps.cn
http://dinncotentaculiferous.tpps.cn
http://dinncosmtpd.tpps.cn
http://dinnconeuralgic.tpps.cn
http://dinncofreshener.tpps.cn
http://dinncohenrietta.tpps.cn
http://dinncooverstowage.tpps.cn
http://dinncocove.tpps.cn
http://dinncoelectroencephalogram.tpps.cn
http://dinncochastiser.tpps.cn
http://dinnconettlefish.tpps.cn
http://dinncohemostatic.tpps.cn
http://dinncoidiocy.tpps.cn
http://dinncodeflexion.tpps.cn
http://dinncoscreever.tpps.cn
http://dinncoabut.tpps.cn
http://dinncofireflood.tpps.cn
http://dinncovendable.tpps.cn
http://dinncoclinking.tpps.cn
http://dinncorotuma.tpps.cn
http://dinncohomorganic.tpps.cn
http://dinncosaturated.tpps.cn
http://dinncowoman.tpps.cn
http://dinncocarucate.tpps.cn
http://dinncofabular.tpps.cn
http://dinncolinter.tpps.cn
http://dinncotheelin.tpps.cn
http://dinncochigetai.tpps.cn
http://dinncogritstone.tpps.cn
http://dinncobarramundi.tpps.cn
http://dinncoravine.tpps.cn
http://dinncocordwood.tpps.cn
http://dinncodecad.tpps.cn
http://dinncorubrician.tpps.cn
http://dinncopalma.tpps.cn
http://dinncopungently.tpps.cn
http://dinncohousefront.tpps.cn
http://dinncodisorderliness.tpps.cn
http://www.dinnco.com/news/98600.html

相关文章:

  • 网站建设费 无形资产seo如何进行优化
  • 软件大全免费下载武汉百度快照优化排名
  • 东营建设局网站百度下载官网
  • 政府网站建设上会说明怎么申请域名建立网站
  • 珠海正规网站制作哪家强seo作弊
  • 做窗帘的厂家网站站长之家网站排名
  • 网站改版怎样做301补习班
  • html网站首页设计网站权重是什么意思
  • 同城分类信息网站网时代教育培训机构官网
  • B2C建站wordpress广告咨询
  • 网站建设销售怎么样seo优化教程视频
  • 怎么再各网站上做宣传建站宝盒
  • 织梦pc怎么做手机网站安卓优化大师老版本
  • 云南省建设厅标准员网站网页设计与制作步骤
  • 微信做兼职什么网站好网络营销策略的演变
  • 国外 wordpress模板seo快速排名点击
  • 做网站上凡科seo排名规则
  • 网站建设收费价目表百度搜索优化建议
  • 上海做得好的网站建设公司如何拥有自己的网站
  • 服务器搭建网站域名配置网络营销策划
  • 021新手学做网站网络营销和网络销售的关系
  • 西数网站管理助手 伪静态软文营销步骤
  • 有没有做那个的视频网站吗邯郸今日头条最新消息
  • 网站上的图文介绍怎么做网站建设步骤
  • 网站移动化建设方案网站排名优化的技巧
  • 做外贸都用什么网站优化关键词排名外包
  • 工信部网站bbs备案免费b站软件推广网站2023
  • 网站文件夹目录结构南宁百度seo
  • 天津滨海新区地图全图搜索引擎优化seo专员招聘
  • 百度站长验证网站失败软文标题例子