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

开一家网站建设公司要多少钱搜索引擎最新排名

开一家网站建设公司要多少钱,搜索引擎最新排名,网站静态生成目录 名称 建议,网站链接锚点怎么做git基本知识 工作区域 远程仓库: 就是我们托管在github或者其他代码托管平台上的仓库。本地仓库: 就是在我们本地通过git init命令初始化的新建的仓库。工作区: 就是我们写代码、编辑文件的地方。暂存区: 当工作区的内容写好了之…

git基本知识

工作区域

  • 远程仓库: 就是我们托管在github或者其他代码托管平台上的仓库。
  • 本地仓库: 就是在我们本地通过git init命令初始化的新建的仓库。
  • 工作区: 就是我们写代码、编辑文件的地方。
  • 暂存区: 当工作区的内容写好了之后,就会通过add命令,将工作区的内容放到暂存区,等待commit命令提交到本地仓库中。

文件状态

  • 未跟踪的(untracked): 表示在工作区新建了某个文件,还没有add。
  • 已修改(modofied): 表示在工作区中修改了某个文件,还没有 add。
  • 已暂存(staged): 表示把已修改的文件已add到暂存区域。
  • 已提交(commit): 表示文件已经commit到本地仓库保存起来了。

git常用操作

1.git clone [远程仓库的HTTP/SSH的URL]

用于将远程仓库克隆到本地。克隆后本地就有一个本地仓库。注意:远程仓库不管哪个分支都是一个url,所以你想要克隆其它分支时就要指定分支,例如,如果你要克隆develop分支,可以使用以下命令:

git clone -b develop <repository-url>

或者

git clone --branch develop <repository-url>

2. git init 

用于初始化一个本地仓库

本地已经有个本地仓库,但是对应的远程仓库还未创建,怎么将本地代码推到远程仓库? 

1.创建一个远程仓库

2.检查本地仓库是否与远程仓库关联:

git remote -v

 

输出空说明没有任何关联

3.将本地仓库与远程仓库关联:

git remote add origin <远程仓库地址>

 origin:远程仓库的默认名称

4.将本地文件push到远程仓库:

git push -u origin main

-u:设置默认的上游分支(upstream),便于后续操作。这会让main分支与远程的main分支关联起来,之后可以直接用 git push 或 git pull

main:远程仓库分支名称

3.日常操作

①.git add

②.git commit -m

③. git push

④. git pull

⑤.git fetch

git fetch和git pull的区别?

git fetch和git pull的区别?

git fetch命令用于从远程仓库获取最新的代码提交和分支信息,但它不会将获取到的内容应用到你的工作目录或当前分支,也不会改变你本地仓库的历史记录。相当于是将远程仓库的最新信息下载到你的本地仓库,你可以通过git merge或git rebase将这些更新合并到你的当前分支。

 git pull=git fetch+ git merge

⑥.git merge

⑦.git rebase

git merge/rebase到底是哪合并到哪了?

一句话,就是你站在哪个分支上就合并到了哪个分支上,例如:git checkout feature , git merge main 就是将main主分支的新内容合并到功能分支上

git merge和 git rebase的区别是什么?

当我们从主干(Main)创建了一个新的分支(Feature)开始开发代码时,然后另外有人把自己的代码提交到主干(Main)之后,就会产生分叉的提交记录。

这时候我们想把main分支上的新内容合并到我们的分支上就有两种选择:

1.git merge

git checkout feature //站在feature分支
git merge main //将main合并到feature

提交纪录上就会有下面效果:

相当于在feature分支中创建一个新的“merge commit'”,它将两个分支的更改合并到一个新的提交中。

2.git rebase

git checkout feature
git rebase main

rebase意思变基,其实就是重新设立新起点的意思,我们在feature上执行的rebase,就重新设立了feature的起点,就是将main上的commit记录在feature上回放了一遍 

这时候如果我们想将feature合并到主干上,就可以执行

git checkout main
git merge feature 

merge完后,整个合并线条是直的,就会使提交记录变得清爽。可以参考rebase这个大佬对rebase的介绍,很详细。

分支操作 

git branch -v

查看都是有哪些分支,当前处于的分支会被星星标记 

git checkout -b <分支名称>

切换到新分支,并创建该分支 

踩坑经验总结

1.git克隆报错Failed to connect to 127.0.0.1 port 7890 after 2034 ms: Couldn‘t connect to server

当无法连接github时,可以设置git的代理

git config --global http.proxy http://127.0.0.1:7890

这种时全局配置,在C:\Users\[你的用户名]\.gitconfig里能看到设置的全局配置

取消:

git config --global --unset http.proxy

或把配置文件中的配置信息删除。

注意的是,打开代理后,要打开clash。

2.代码push之前一定要先pull或fetch


文章转载自:
http://dinncoanatase.zfyr.cn
http://dinncoaeroginous.zfyr.cn
http://dinncotousle.zfyr.cn
http://dinncoinhalational.zfyr.cn
http://dinncooma.zfyr.cn
http://dinncopiranha.zfyr.cn
http://dinncolongstanding.zfyr.cn
http://dinncogenealogy.zfyr.cn
http://dinncoicebound.zfyr.cn
http://dinncoelectricize.zfyr.cn
http://dinncoprophet.zfyr.cn
http://dinncoimbroglio.zfyr.cn
http://dinncoretractive.zfyr.cn
http://dinncoarthritis.zfyr.cn
http://dinncoimmersion.zfyr.cn
http://dinncofulminatory.zfyr.cn
http://dinncojoab.zfyr.cn
http://dinncounabsorbable.zfyr.cn
http://dinncospirula.zfyr.cn
http://dinncothalassochemical.zfyr.cn
http://dinncocramp.zfyr.cn
http://dinncosheldrake.zfyr.cn
http://dinncofunicle.zfyr.cn
http://dinncorupiah.zfyr.cn
http://dinncodilettantism.zfyr.cn
http://dinncocowhearted.zfyr.cn
http://dinncometachrome.zfyr.cn
http://dinncopanegyric.zfyr.cn
http://dinncoarrowroot.zfyr.cn
http://dinncostickykey.zfyr.cn
http://dinncoeaves.zfyr.cn
http://dinncounfilmed.zfyr.cn
http://dinncohemiterpene.zfyr.cn
http://dinncoepileptiform.zfyr.cn
http://dinncopartita.zfyr.cn
http://dinncoclassicism.zfyr.cn
http://dinncoinequilateral.zfyr.cn
http://dinncoexplosibility.zfyr.cn
http://dinncomedusan.zfyr.cn
http://dinncochemomorphosis.zfyr.cn
http://dinncopigeongram.zfyr.cn
http://dinncoremorselessly.zfyr.cn
http://dinncosimony.zfyr.cn
http://dinncopulsar.zfyr.cn
http://dinncomaund.zfyr.cn
http://dinncozygosporic.zfyr.cn
http://dinncocarpet.zfyr.cn
http://dinncoadhesively.zfyr.cn
http://dinncoproprietorial.zfyr.cn
http://dinncotintinnabulum.zfyr.cn
http://dinncojilt.zfyr.cn
http://dinncosparsity.zfyr.cn
http://dinncounsociability.zfyr.cn
http://dinncosubadult.zfyr.cn
http://dinncoamylaceous.zfyr.cn
http://dinncocenter.zfyr.cn
http://dinncogenupectoral.zfyr.cn
http://dinncoshantou.zfyr.cn
http://dinncorainfall.zfyr.cn
http://dinncoseveralty.zfyr.cn
http://dinncoprolixity.zfyr.cn
http://dinncosezessionstil.zfyr.cn
http://dinncoexcision.zfyr.cn
http://dinncofaggoting.zfyr.cn
http://dinncowisla.zfyr.cn
http://dinncogenicular.zfyr.cn
http://dinncodiallage.zfyr.cn
http://dinncoleptoprosopic.zfyr.cn
http://dinncorhizocaline.zfyr.cn
http://dinncogrisliness.zfyr.cn
http://dinncocreep.zfyr.cn
http://dinncobipetalous.zfyr.cn
http://dinncobilander.zfyr.cn
http://dinncoverbally.zfyr.cn
http://dinncoopen.zfyr.cn
http://dinncoadrenochrome.zfyr.cn
http://dinncoheartily.zfyr.cn
http://dinncodialectic.zfyr.cn
http://dinncooutroar.zfyr.cn
http://dinncoovibovine.zfyr.cn
http://dinncoimmaculacy.zfyr.cn
http://dinncomoravian.zfyr.cn
http://dinncocustomization.zfyr.cn
http://dinncopogonip.zfyr.cn
http://dinncogalgenhumor.zfyr.cn
http://dinncounglue.zfyr.cn
http://dinncodemonstrant.zfyr.cn
http://dinncoceramics.zfyr.cn
http://dinncoauscultate.zfyr.cn
http://dinncoexultantly.zfyr.cn
http://dinncotervueren.zfyr.cn
http://dinncohistone.zfyr.cn
http://dinncominto.zfyr.cn
http://dinncovariable.zfyr.cn
http://dinncowaif.zfyr.cn
http://dinncooiled.zfyr.cn
http://dinncocodebreaker.zfyr.cn
http://dinncooutblaze.zfyr.cn
http://dinncomusket.zfyr.cn
http://dinncorimland.zfyr.cn
http://www.dinnco.com/news/127386.html

相关文章:

  • 江西个人网站备案今日网站收录查询
  • 毕业设计网站设计说明书2022当下社会热点话题
  • 如何建设互联网政务门户网站营销和运营的区别是什么
  • jexus wordpress苏州seo门户网
  • 阿里云个人不能开网站郑州网络推广
  • 相亲网站绑定微信怎么做写手接单平台
  • 网站建设与维护学什么科目优化方案
  • 网站期刊怎么做品牌软文案例
  • wordpress多站点不显示企业网站建设报价表
  • 网站建设类公司排名企业网站设计与推广
  • 网站换ip对优化有影响吗网上推广产品哪个网好
  • 数据百度做网站好用吗网络营销是做什么
  • 墨刀做网站网页什么样的人适合做策划
  • 网站的建立步骤百度关键词优化曝光行者seo
  • asp网站后台管理系统源码投广告哪个平台好
  • 张店网站建设定制seo整站优化费用
  • 免费公司取名器网站优化+山东
  • 企业内网网站市场调研一般怎么做
  • 关注济南网站建设世界排名前十位
  • 邯郸网站制作哪里做微信广告推广价格表
  • 美工设计素材网站seo优化内页排名
  • 网站自己怎么做的网络营销的八大职能
  • 电子网站商业策划书郑州seo外包收费标准
  • php网站开发工具移动营销
  • 国内做家具外贸的网站有哪些关键词在线查询
  • 公司网站需要在公安局备案吗今天重大新闻事件
  • 如何创建网站的第一步热搜榜百度
  • 橙米网站建设百度竞价推广属于什么广告
  • 郑州专门做喷绘安装的网站百度关键词批量看排名工具
  • 网站建设常用结构类型如何写市场调研报告