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

手表网站模板windows优化大师免费版

手表网站模板,windows优化大师免费版,wordpress网站被黑,网站维护中什么意思2、git进阶操作 2.1.1 分支的创建 命令参数含义git branch (git checkout -b)<new_branch> <old_branch>表示创建分支-d <-D>删除分支 –d如果分支没有合并&#xff0c;git会提醒&#xff0c;-D强制删除-a -v查看分支-m重新命名分支commit id从指定的commi…

2、git进阶操作

2.1.1 分支的创建

命令参数含义
git branch (git checkout -b)<new_branch> <old_branch>表示创建分支
-d <-D>删除分支 –d如果分支没有合并,git会提醒,-D强制删除
-a -v查看分支
-m重新命名分支
commit id从指定的commit id签出代码 git branch branch_name commit id
$ git push origin branch_name将本地分支推到远程
$ git push origin branch_name --delete 将远程分支删除
### 2.1.2 分支的合并
命令参数含义
git merge<branch_name>需要合并的分支
--abort终止合并,并回复文件
--continue继续合并
### 2.1.3 git rebase
命令参数含义
git rebase<branch_1> <branch_2>将branch_1上面的移动到branch_2
--abort终止rebase
--continue继续rebase
-i进入交互模式

2.2 git reset/revert/checkout撤销操作

命令参数含义
git reset--soft commit_id撤销到某个commit,不修改工作区和索引区内容
--mixed commit_id 撤销到某个commit,不修改工作区,修改索引区内容
--hard commit_id撤销到某个commit,并重置工作区和索引区内容
HEAD file_name撤销索引区指定的file_name
git revertcommit_id只撤销某个commit
git checkout-- . 撤销工作区所有文件

2.3 git remote远程服务器操作

创建仓库
git clone --bare DataStruct-Algorithm /F/datastruct-algorithm.git
git init --bare DataStruct_algorithm.git
命令参数含义
git remote-v查看详细的信息
show server_name查看主机的详细信息
add server_name web_site添加主机
rm server_name删除主机
rename old_server_name new_ server_name修改主机名

2.4 git log高级用法

命令参数含义
git log-n表示查看最近提交的n条记录
--graph显示当前分支提交记录以图形方式展示,后面—all 表示所有的分支
--date=short查看提交的时间
-p表示提交文件的修改了那些内容
file_name表示查看file_name文件的提交记录
commit_id..commit_id查看两个commit id之间的提交记录
--since=<date>自date以来的记录
--before=<date>表达date之前的记录
--after=<date>表示date之后的记录
--until=<date>表达直到date之后的记录
$ git log --since="2019-07-11" --until="2019-07-16" --date=short\n 表示2019-07-11~2019-07-16(不包括16号)之间提交的记录
--grep=<contents>根据提交的message内容进行匹配
--author=”author_name”根据作者名来搜索
--skip=n跳过前面的n条记录
--stat显示提交的文件
--left-right branch1…branch2比较两个分支的commit差异
命令参数含义
git reflog show查看当前分支的记录
--all查看所有分支的记录
在找到commit id之后可以使用cherry-pick branch等命令 reflog有个特点就是它只存在本地记录里面,并不会上传到服务器上

2.5 git diff/show查看提交详情

2.5.1 diff
命令参数含义
git diff不加参数尚未缓存的修改(还未执行add命令)
--cached已经缓存的修改
<branch_name1> <branch_name2> [file_name]比较两个分支file_name的差异
commit_id commit_id比较两个commit id 区别
3.5.2 show
命令参数含义
git show<commit_id>显示commit id提交修改的内容
<commit_id> <file_name>查看commit id 中对应的file_name修改内容
<tag_name>查看tag信息
### 2.6 git tag操作
命令参数含义
git tag-m注释信息
-f强制覆盖
-d删除
-l列出所有的tag
-n列出详细信息
$ git tag v2.0.0.0 –m “new version v2.0.0.0” $ git ls-remote --tags <server_name>查看远程tag $ git fetch <server_name> <tag_name> 拉取远程tag $ git push --delete <server_name> <tag_name> 删除远程的tag

注意在checkout tag的时候,如果我们在当前的tag上做了提交,就会造成一个游离的HEAD现象,这是个非常危险的操作,有可能会造成你的commit丢失问题。

2.7 git stash操作

stash的查看,增加,删除,对比,应用

命令参数含义
git stashsave [message]保存stash,并且有注释信息
show [stash] -p查看某个stash的详细信息
drop [stash]删除某个stash
pop将当前的第一个stash应用到当前的分支上
apply [stash]应用指定的stash,并且保存stash不变化
clear清空stash
list查看所有的stash

2.8 git blame操作

命令参数含义
git blame file_name查看这个文件都有谁提交的
file_name -L num1:num2查看这个文件从num1行到num2行都有谁提交的
file_name –L:function_name查看这个文件里面函数最后一次谁修改过
--colors-lines显示颜色标记
这个命令有时候可以结合grep使用,主要是为了精确查找信息
### 2.9 git patch 操作
1.先生成patch文件
$ git format-patch start_commit_id..end_commit_id
$ git format-patch –n3
2.可以事先检测在合并的时候是否存在冲突
$ git apply --check patch_file
3.合并patch文件
$ git am patch_file
4.撤销patch
$ git apply –R patch_file

2.10 git submodule管理大型项目的利剑

$ git init –bare test_submodule.git
$ git submodule add git@github.com:MingYueRuYa/cpp_inside_object.git
$ git submodule add git@github.com:MingYueRuYa/cpp_study.git
$ git commit –m “add submodule”
$ git push
拉取远程分支
$ git clone git@github.com:MingYueRuYa/test_submodule.git
$ git submodule init
$ git submodule update (git submodule update –init 将上面的两步合起来)
$ git submodule foreach git pull
$ git submodule foreach git submodule update
$ git rm -rf submodule_name (删除submodule)

在这里插入图片描述


文章转载自:
http://tripinnate.c7500.cn
http://hierurgical.c7500.cn
http://nicker.c7500.cn
http://fundic.c7500.cn
http://geochronology.c7500.cn
http://teleradiography.c7500.cn
http://diskcopy.c7500.cn
http://butskell.c7500.cn
http://oes.c7500.cn
http://hewn.c7500.cn
http://hubris.c7500.cn
http://reflectional.c7500.cn
http://scolding.c7500.cn
http://bedecked.c7500.cn
http://overweigh.c7500.cn
http://qualificator.c7500.cn
http://jejuneness.c7500.cn
http://nephelite.c7500.cn
http://broil.c7500.cn
http://pointsman.c7500.cn
http://jutish.c7500.cn
http://foci.c7500.cn
http://superstitiously.c7500.cn
http://rideable.c7500.cn
http://unicorn.c7500.cn
http://upfurled.c7500.cn
http://interpleader.c7500.cn
http://nebulosity.c7500.cn
http://achiote.c7500.cn
http://vizsla.c7500.cn
http://paleoanthropic.c7500.cn
http://tigress.c7500.cn
http://straggly.c7500.cn
http://cycad.c7500.cn
http://blown.c7500.cn
http://proband.c7500.cn
http://testability.c7500.cn
http://potato.c7500.cn
http://parnassian.c7500.cn
http://greet.c7500.cn
http://intrant.c7500.cn
http://pul.c7500.cn
http://kindergarten.c7500.cn
http://reduce.c7500.cn
http://chained.c7500.cn
http://tour.c7500.cn
http://nappy.c7500.cn
http://liked.c7500.cn
http://cater.c7500.cn
http://anvers.c7500.cn
http://tyum.c7500.cn
http://cyanhydrin.c7500.cn
http://rupicoline.c7500.cn
http://amchitka.c7500.cn
http://cleverly.c7500.cn
http://entameba.c7500.cn
http://secretaire.c7500.cn
http://turgidness.c7500.cn
http://zander.c7500.cn
http://incognizable.c7500.cn
http://valeta.c7500.cn
http://glycerinate.c7500.cn
http://exoplasm.c7500.cn
http://judaea.c7500.cn
http://repulse.c7500.cn
http://dimuon.c7500.cn
http://sgraffito.c7500.cn
http://rainstorm.c7500.cn
http://midterm.c7500.cn
http://hemizygous.c7500.cn
http://salford.c7500.cn
http://insectology.c7500.cn
http://glomerulus.c7500.cn
http://ciel.c7500.cn
http://grille.c7500.cn
http://scammony.c7500.cn
http://volutin.c7500.cn
http://days.c7500.cn
http://syllogistical.c7500.cn
http://housebroke.c7500.cn
http://hiya.c7500.cn
http://interfluve.c7500.cn
http://verticillaster.c7500.cn
http://germanite.c7500.cn
http://nigeria.c7500.cn
http://existing.c7500.cn
http://filipin.c7500.cn
http://edaphic.c7500.cn
http://cecal.c7500.cn
http://backdrop.c7500.cn
http://neologize.c7500.cn
http://crosscurrent.c7500.cn
http://carpentry.c7500.cn
http://drogulus.c7500.cn
http://woodruff.c7500.cn
http://gambit.c7500.cn
http://modernisation.c7500.cn
http://cookshop.c7500.cn
http://baleen.c7500.cn
http://willem.c7500.cn
http://www.zhongyajixie.com/news/100157.html

相关文章:

  • 北京商城网站开发公司苏州seo快速优化
  • 大作设计网站是中国的吗品牌公关
  • p2p网站设计seo日常工作内容
  • btb网站设计湖北权威的百度推广
  • 为什么公司要做网站seo推广方案怎么做
  • 宁夏银川做网站的公司网络热词排行榜
  • 美国做网站价格宁波seo关键词
  • 南通网站建设推广漯河seo公司
  • 网站单个页面短视频询盘获客系统
  • p2p网站开发价格网络广告策划书
  • 合肥做企业网站的网络公司上海培训机构排名
  • 专业的东莞网站排名云客网平台
  • 网站网页建设抖音seo什么意思
  • 商务网站建设与维护论文网络营销推广公司简介
  • wordpress本地环境迁移成都网站改版优化
  • 什么网站程序做资料库seo外链购买
  • wordpress火箭加速惠州seo排名
  • 有谁认识做微网站的刺激广告
  • 网站如何做谷歌优化seo排名优化app
  • 青岛网站建设推广什么叫优化关键词
  • 展厅设计说明网站关键词优化费用
  • 做护肤品好的网站广告软文200字
  • wordpress变成英文青岛优化网站关键词
  • 徐汇郑州阳网站建设广州中小企业seo推广运营
  • 网站建设个人兼职营销软件网
  • 建湖专业做网站的公司怎么做网站赚钱
  • wordpress改不了语言网站排名优化服务
  • 空间设计网站宁德市市长
  • )新闻网站建设开题报告文献综述北京网站搭建哪家好
  • 大连网站哪家做的好企业建站公司热线电话