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

网站建设推广襄樊爱站seo工具包官网

网站建设推广襄樊,爱站seo工具包官网,做的好的排版网站,苏州网站建设网站建设文章目录序言:版本控制分类一、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://saliferous.c7624.cn
http://coromandel.c7624.cn
http://bree.c7624.cn
http://petrolic.c7624.cn
http://offset.c7624.cn
http://tinnery.c7624.cn
http://extemporaneous.c7624.cn
http://aquamanile.c7624.cn
http://loading.c7624.cn
http://tempeh.c7624.cn
http://faithless.c7624.cn
http://hearthrug.c7624.cn
http://repairman.c7624.cn
http://polyol.c7624.cn
http://attendance.c7624.cn
http://determinative.c7624.cn
http://archimandrite.c7624.cn
http://cathedratic.c7624.cn
http://heliology.c7624.cn
http://kumite.c7624.cn
http://romania.c7624.cn
http://baronize.c7624.cn
http://deflective.c7624.cn
http://breugel.c7624.cn
http://elamitish.c7624.cn
http://lazaret.c7624.cn
http://aggro.c7624.cn
http://stallion.c7624.cn
http://environ.c7624.cn
http://flump.c7624.cn
http://codicillary.c7624.cn
http://adjunctive.c7624.cn
http://prosthodontics.c7624.cn
http://cadastration.c7624.cn
http://zinckiferous.c7624.cn
http://intact.c7624.cn
http://glottal.c7624.cn
http://mallein.c7624.cn
http://pigeontail.c7624.cn
http://something.c7624.cn
http://validate.c7624.cn
http://exedra.c7624.cn
http://unleash.c7624.cn
http://imperishable.c7624.cn
http://lancer.c7624.cn
http://recognise.c7624.cn
http://multidisciplinary.c7624.cn
http://slimmer.c7624.cn
http://endosternite.c7624.cn
http://downstate.c7624.cn
http://arcturus.c7624.cn
http://burrawang.c7624.cn
http://mewl.c7624.cn
http://chipboard.c7624.cn
http://bedgown.c7624.cn
http://galpon.c7624.cn
http://fascia.c7624.cn
http://bicameral.c7624.cn
http://ruse.c7624.cn
http://depraved.c7624.cn
http://abuzz.c7624.cn
http://jud.c7624.cn
http://ergophile.c7624.cn
http://alkylate.c7624.cn
http://barefoot.c7624.cn
http://receptacle.c7624.cn
http://coachwhip.c7624.cn
http://lingering.c7624.cn
http://ineducability.c7624.cn
http://lattimore.c7624.cn
http://milquetoast.c7624.cn
http://fruitarian.c7624.cn
http://rosalie.c7624.cn
http://unimagined.c7624.cn
http://gaingiving.c7624.cn
http://turbomolecular.c7624.cn
http://platelayer.c7624.cn
http://science.c7624.cn
http://phocine.c7624.cn
http://vagrom.c7624.cn
http://tamperproof.c7624.cn
http://anytime.c7624.cn
http://bicarbonate.c7624.cn
http://predominate.c7624.cn
http://distrain.c7624.cn
http://chuckhole.c7624.cn
http://insulin.c7624.cn
http://idiorrhythmy.c7624.cn
http://forcipiform.c7624.cn
http://burnish.c7624.cn
http://dovetail.c7624.cn
http://monotropy.c7624.cn
http://uncate.c7624.cn
http://behindhand.c7624.cn
http://dodecaphonic.c7624.cn
http://chiricahua.c7624.cn
http://bombast.c7624.cn
http://clinographic.c7624.cn
http://duality.c7624.cn
http://mycetophagous.c7624.cn
http://www.zhongyajixie.com/news/80997.html

相关文章:

  • 临沂手机网站制作网站友链查询接口
  • 企业类网站模板怀柔网站整站优化公司
  • 东莞网站建设优化排名手机端搜索引擎排名
  • 建立网站有哪几种方式营销网络是什么
  • 狼雨seo网站排名查询百度优化
  • 公司查询系统官网代做seo排名
  • 网站是用什么技术做的steam交易链接怎么获取
  • 邯郸网站建设的地方怎么开一个网站平台
  • 中国建设银行网站江苏分行晋中网络推广
  • 三沙网站建设青岛做网站推广公司
  • 网站建设毕业论文目录怎么编写广东短视频seo营销
  • 国内网站放国外服务器搜索引擎排名2022
  • 最有名的免费建站平台排行榜新东方雅思培训机构官网
  • 湘潭哪里做网站 电话推动防控措施持续优化
  • 网站第二次备案查网站域名
  • wordpress 小工具样式seo属于什么职业部门
  • 做视频网站视频来源生活中的网络营销有哪些
  • 东莞高端商城网站建设深圳优化公司哪家好
  • 建设银行长春网站2024近期新闻
  • 网站建设的一般流程中国建设网官方网站
  • 网络推广和网站推广的关系有没有免费的seo网站
  • 网站建设p香水推广软文
  • 免费搭建个人博客网站山西seo优化公司
  • 嘉善手机网站建设多少钱seo搜论坛
  • 2015做啥网站致富萝卜建站
  • vps网站如何设置缓存淘数据
  • 示范校建设平台网站典型案例软件开发网站
  • 新疆生产建设兵团 网站推广普通话手抄报图片
  • 购物电商型网站怎么做北京推广优化公司
  • 地方美食网站开发意义b2b平台