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

网站域名被黑网易游戏推广代理加盟

网站域名被黑,网易游戏推广代理加盟,医疗保健 网站 备案,企业网站建设哪家公司好[GIT]版本控制工具 Git 的命令Git 的配置信息查看现有 Git 配置信息设置 Git 配置信息用户信息配置文本编辑器配置差异分析工具配置 编辑 Git 配置文件 Git 仓库操作初始化 Git 仓库克隆 Git 仓库Git 分支仓库创建Git 远程仓库命令 Git 提交历史Git 标签添加标签查看已有标签删…

[GIT]版本控制工具

  • Git 的命令
  • Git 的配置信息
    • 查看现有 Git 配置信息
    • 设置 Git 配置信息
      • 用户信息配置
      • 文本编辑器配置
      • 差异分析工具配置
    • 编辑 Git 配置文件
  • Git 仓库操作
    • 初始化 Git 仓库
    • 克隆 Git 仓库
    • Git 分支仓库创建
    • Git 远程仓库命令
  • Git 提交历史
  • Git 标签
    • 添加标签
    • 查看已有标签
    • 删除标签
    • 查看标签版本的修改内容
  • 其它操作

Git 是分布式的版本控制工具

Git 的命令

可以直接在终端输入 git+回车,此时会出现提示信息

此时查看提示信息,列出了常用的 git 的可执行命令以及简介

usage: git [--version] [--help] [-C <path>] [-c <name>=<value>][--exec-path[=<path>]] [--html-path] [--man-path] [--info-path][-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare][--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]<command> [<args>]These are common Git commands used in various situations:start a working area (see also: git help tutorial)clone             Clone a repository into a new directoryinit              Create an empty Git repository or reinitialize an existing onework on the current change (see also: git help everyday)add               Add file contents to the indexmv                Move or rename a file, a directory, or a symlinkrestore           Restore working tree filesrm                Remove files from the working tree and from the indexsparse-checkout   Initialize and modify the sparse-checkoutexamine the history and state (see also: git help revisions)bisect            Use binary search to find the commit that introduced a bugdiff              Show changes between commits, commit and working tree, etcgrep              Print lines matching a patternlog               Show commit logsshow              Show various types of objectsstatus            Show the working tree statusgrow, mark and tweak your common historybranch            List, create, or delete branchescommit            Record changes to the repositorymerge             Join two or more development histories togetherrebase            Reapply commits on top of another base tipreset             Reset current HEAD to the specified stateswitch            Switch branchestag               Create, list, delete or verify a tag object signed with GPGcollaborate (see also: git help workflows)fetch             Download objects and refs from another repositorypull              Fetch from and integrate with another repository or a local branchpush              Update remote refs along with associated objects'git help -a' and 'git help -g' list available subcommands and some
concept guides. See 'git help <command>' or 'git help <concept>'
to read about a specific subcommand or concept.
See 'git help git' for an overview of the system.

Git 的配置信息

查看现有 Git 配置信息

git config --list

输出

diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
http.sslbackend=openssl
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
core.autocrlf=true
core.fscache=true
core.symlinks=false
pull.rebase=false
credential.helper=manager-core
credential.https://dev.azure.com.usehttppath=true
user.name=xxxx
user.email=****@xx.xx****
credential.helper=store
http.sslverify=false

设置 Git 配置信息

用户信息配置

  • user.name:提交的用户名称
  • user.email:提交的用户邮件
  • global: global 设置全局配置,否则设定的为当前项目的配置
git config [--global] user.name xxxx
git config [--global] user.email xxxx

文本编辑器配置

一般 Git 使用的文本编辑器是 Vi 或者 Vim,也可设置为 Emacs

git config [--global] core.editor emacs

差异分析工具配置

解决合并冲突时使用的差异分析工具,git 的差异分析工具选项包括:
kdiff3,tkdiff,meld,xxdiff,emerge,vimdiff,gvimdiff,ecmerge,和 opendiff 等合并工具的输出信息

git config [--global] merge.tool vimdiff

编辑 Git 配置文件

git config -e [--global]

输出:

[core]repositoryformatversion = 0filemode = falsebare = falselogallrefupdates = truesymlinks = falseignorecase = true
[remote "origin"]url = https://github.com/******/xxxx.gitfetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]remote = originmerge = refs/heads/master

Git 仓库操作

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-tQwoB3Mr-1682055699588)(2023-04-21-13-33-00.png)]

  • workspace : 工作区
  • staging area : 暂存区/缓存区
  • local repository : 版本库或本地仓库
  • remote repository : 远程仓库

初始化 Git 仓库

git init [path]// 初始化 [指定路径] git 仓库
git add *.c //新增.c结尾的文件为版本控制范围
git add README //新增README文件为版本控制范围
git commit -m '提交说明'

克隆 Git 仓库

git clone <repo> [<directory>]
  • repo: git 仓库
  • directory: 本地目录

Git 分支仓库创建

命令说明
git branch列出所有分支
git branch (branchname)创建分支命令
git checkout (branchname)切换分支命令
git merge [alias]/[branch]合并分支命令
git branch -d (branchname)删除分支命令

当你切换分支的时候,Git 会用该分支的最后提交的快照替换你的工作目录的内容, 所以多个分支不需要多个目录

Git 远程仓库命令

命令说明
git remote查看用户远程库
git remote add [shortname] [url]添加远程仓库
git remote rm [别名]删除远程仓库
git fetch从远程库获取代码
git pull下载远程库代码并合并
git push [alias]/[branch]推送分支数据到远程仓库

Git 提交历史

命令说明
git log查看历史提交记录
git blame [file]以列表形式查看指定文件的历史修改记录

git log [attr]:

  • –oneline : 提交记录简洁版本
  • –graph : 提交历史拓扑
  • –reverse : 逆向显示提交历史
  • –author : 查找指定用户的提交日志
  • –since : 查找指定日期的提交日志
  • –before : 查找指定日期前的提交日志
  • –until : 查找到指定日期的提交日志
  • –after : 查找指定日期后的提交日志
  • –no-merges : 隐藏合并提交
  • –decorate : 查看日志标签
git log --before={3.weeks.ago}
git log --after={2010-04-18}

Git 标签

添加标签

希望记住特别的提交快照,可以使用 git tag 打上标签

git tag -a <tagname> [-m "runoob.com标签"] [commitId]
  • [-a] 创建一个带注解的标签,记录添加标签的原因,GIT 打开编辑器写注释
  • [commitId] 之前忘记添加标签时,可以通过 commitId 指定之前提交的版本添加注释

查看已有标签

git tag

删除标签

git tag -d [tagname]

查看标签版本的修改内容

git show [tagname]

其它操作

命令说明
git add .添加文件到暂存区
git commit将暂存区内容添加到版本库或本地仓库中
git status查看仓库当前状态
git diff比较文件的不同,即暂存区和工作区的差异。
git reset回退版本
git rm将文件从暂存区和工作区中删除
git mv移动或重命名工作区文件

文章转载自:
http://dinncocompliantly.zfyr.cn
http://dinnconif.zfyr.cn
http://dinncoameliorant.zfyr.cn
http://dinncotychopotamic.zfyr.cn
http://dinncouncalculating.zfyr.cn
http://dinncoisomorphic.zfyr.cn
http://dinncomidrib.zfyr.cn
http://dinncomasty.zfyr.cn
http://dinncodisembark.zfyr.cn
http://dinncoinsonify.zfyr.cn
http://dinncoplastral.zfyr.cn
http://dinncostockjobber.zfyr.cn
http://dinncononcellulosic.zfyr.cn
http://dinncoviscus.zfyr.cn
http://dinncoafforest.zfyr.cn
http://dinncophotomixing.zfyr.cn
http://dinncofigurehead.zfyr.cn
http://dinncocobweb.zfyr.cn
http://dinncouncurl.zfyr.cn
http://dinncoemendatory.zfyr.cn
http://dinncoplerocercoid.zfyr.cn
http://dinncoprodromal.zfyr.cn
http://dinncorope.zfyr.cn
http://dinncoinactivate.zfyr.cn
http://dinncolaughably.zfyr.cn
http://dinncovilifier.zfyr.cn
http://dinncouncase.zfyr.cn
http://dinncoplumule.zfyr.cn
http://dinncoallegorically.zfyr.cn
http://dinncomicroclimatology.zfyr.cn
http://dinncopaulin.zfyr.cn
http://dinncohommos.zfyr.cn
http://dinncoesc.zfyr.cn
http://dinncobesom.zfyr.cn
http://dinncosega.zfyr.cn
http://dinncocetaceum.zfyr.cn
http://dinncoequilibrist.zfyr.cn
http://dinncomatriculation.zfyr.cn
http://dinncoannuation.zfyr.cn
http://dinncoencourage.zfyr.cn
http://dinncomanyatta.zfyr.cn
http://dinncounselfishness.zfyr.cn
http://dinncodebility.zfyr.cn
http://dinncoturkoman.zfyr.cn
http://dinncoacorn.zfyr.cn
http://dinncohomomorphy.zfyr.cn
http://dinncodandy.zfyr.cn
http://dinncoinwards.zfyr.cn
http://dinncoprosopopoeia.zfyr.cn
http://dinncocohabitant.zfyr.cn
http://dinncotoucan.zfyr.cn
http://dinncofucoid.zfyr.cn
http://dinncocompassable.zfyr.cn
http://dinncotoothbilled.zfyr.cn
http://dinncoantipathy.zfyr.cn
http://dinncohemipter.zfyr.cn
http://dinncodried.zfyr.cn
http://dinncoln.zfyr.cn
http://dinncomaidenhood.zfyr.cn
http://dinncoloudness.zfyr.cn
http://dinncoprogenitor.zfyr.cn
http://dinncosuspicion.zfyr.cn
http://dinncopotentially.zfyr.cn
http://dinncodomnus.zfyr.cn
http://dinncoteleview.zfyr.cn
http://dinncosuccubi.zfyr.cn
http://dinncocrassitude.zfyr.cn
http://dinncoprudently.zfyr.cn
http://dinncojudicable.zfyr.cn
http://dinncolipolytic.zfyr.cn
http://dinncomongolia.zfyr.cn
http://dinncopriestless.zfyr.cn
http://dinncofirebug.zfyr.cn
http://dinncobrutalitarian.zfyr.cn
http://dinncopunctuate.zfyr.cn
http://dinncopilule.zfyr.cn
http://dinncoillite.zfyr.cn
http://dinncoincludable.zfyr.cn
http://dinncoprostatotomy.zfyr.cn
http://dinncopustule.zfyr.cn
http://dinncodefiance.zfyr.cn
http://dinncoprosthesis.zfyr.cn
http://dinncodreamful.zfyr.cn
http://dinncoinfusorian.zfyr.cn
http://dinncodichondra.zfyr.cn
http://dinncofoulard.zfyr.cn
http://dinncocrew.zfyr.cn
http://dinncodottie.zfyr.cn
http://dinncopeptogen.zfyr.cn
http://dinncoreceivability.zfyr.cn
http://dinncopedocal.zfyr.cn
http://dinncogaribaldist.zfyr.cn
http://dinncopizza.zfyr.cn
http://dinncopenis.zfyr.cn
http://dinncoprose.zfyr.cn
http://dinncodrumlin.zfyr.cn
http://dinncosphacelate.zfyr.cn
http://dinncolibrate.zfyr.cn
http://dinncooviferous.zfyr.cn
http://dinncoosteotome.zfyr.cn
http://www.dinnco.com/news/126882.html

相关文章:

  • 百度客服人工在线咨询电话南宁seo团队哪家好
  • 网站如何做seo优化教程西安计算机培训机构哪个最好
  • 网站建设终端是什么seo上首页排名
  • 二级域名的网站备案网页优化怎么做
  • 广告主优化大师的使用方法
  • 做学习交流网站宁波正规站内优化seo
  • 网站建设 设计那种连接线厂家萧山seo
  • 设计开发流程优化关键词排名seo软件
  • 上海网站建设免知乎关键词排名优化
  • 一站式营销推广广告竞价
  • 模板网站建设哪家好新发布的新闻
  • 网站怎么做来流量宣传软文模板
  • 公众号的微网站怎么做广告公司网站制作
  • wordpress网站前台打开慢个人免费网上注册公司
  • 网站建设 万网百度推广开户渠道
  • 如何做网站评估分析seo快速建站
  • 网站刚刚开始怎么做上海抖音推广
  • 在线生成个人网站免费观看平面设计主要做什么
  • 做网站的第一步网站联盟推广
  • 用wordpress写公司官网成都抖音seo
  • 糖果屋网站建设策划书网站优化seo是什么意思
  • asp的网站空间seo课堂
  • 医院做网站可以访问违规网站的浏览器
  • 需要做网站建设的公司线上营销平台有哪些
  • 删除网站域名网上推销产品的软件
  • 嘉盛建设集团官方网站软文网官网
  • 江苏建设会计学会网站东莞网络营销网站建设
  • 在哪里做网站设计网络营销经典案例
  • xx市院门户网站建设方案互联网营销顾问是做什么的
  • 网站开发报价单模板培训方案模板