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

服务类网站开发重庆seo怎么样

服务类网站开发,重庆seo怎么样,河南郑州做网站h汉狮,三个字的公司名称精选GIT git的使用 使用git提交的两步 第一步:是使用 git add 把文件添加进去,实际上就是把文件添加到暂存区。第二步:使用git commit提交更改,实际上就是把暂存区的所有内容提交到当前分支上。 .git 跟踪管理版本的目录 创建版本库…

GIT

git的使用
  • 使用git提交的两步
    • 第一步:是使用 git add 把文件添加进去,实际上就是把文件添加到暂存区。
    • 第二步:使用git commit提交更改,实际上就是把暂存区的所有内容提交到当前分支上。

.git 跟踪管理版本的目录

创建版本库
  • 创建版本库
    • mkdir test
  • 进入目录
    • cd test
  • 显示当前目录
    • pwd
  • 通过命令把这个目录变成git可以管理的仓库
    • git init
  • 新建一个记事本文件使用命令将其添加到暂存区里面去
    • git add read.txt
  • 提交到仓库
    • git commit -m ‘提交read.txt’
    • 提交read.txt 提交注释
  • 通过命令git status来查看是否还有文件未提交
    • git status
  • 查看文件改了什么内容
    • git diff read.txt
  • 查看历史记录
    • git log
    • git log –-pretty=oneline 信息显示太多的话
版本回退
  • 回退版本
    • 回退上一个版本
      • git reset --hard HEAD^
    • 回退上上一个版本
      • git reset --hard HEAD^^
    • 回退前一百个版本
      • git reset --hard HEAD~100
  • 查看记事本内容
    • cat read.txt
  • 回退到最新版本
    • 查看之前的版本号
      • git reflog
    • 6fcfc89 版本号
      • git reset --hard 6fcfc89
Git撤销修改和删除文件操作
  • 撤销修改–未添加到暂存区
    • git checkout – read.txt
  • 撤销修改–添加到暂存区
    • git checkout – read.txt
  • 删除文件
    • rm read.txt
  • 恢复删除的文件
    • git checkout – read.txt
远程仓库
  • 第一步:创建SSH Key。在用户主目录下,看看有没有.ssh目录,如果有,再看看这个目录下有没有id_rsa和id_rsa.pub这两个文件,如果有的话,直接跳过此如下命令,如果没有的话,打开命令行,输入如下命令
    ssh-keygen -t rsa –C “youremail@example.com”
    • id_rsa是私钥,不能泄露出去,id_rsa.pub是公钥,可以放心地告诉任何人
  • 第二步:登录github,打开” settings”中的SSH Keys页面,然后点击“Add SSH Key”,填上任意title,在Key文本框里黏贴id_rsa.pub文件的内容,点击 Add Key,你就应该可以看到已经添加的key
添加远程库

我们已经在本地创建了一个Git仓库后,又想在github创建一个Git仓库,并且希望这两个仓库进行远程同步,这样github的仓库可以作为备份,又可以其他人通过该仓库来协作。

  • 登录github上,然后在右上角找到“create a new repo”创建一个新的仓库。
  • 在Repository name填入testgit,其他保持默认设置,点击“Create repository”按钮,就成功地创建了一个新的Git仓库
  • git remote add origin https://github.com/tugenhua0707/test.git
  • git push -u origin master 本地仓库分支master内容推送到远程库中
    • 由于远程库是空的,我们第一次推送master分支时,加上了 –u参数,Git不但会把本地的master分支内容推送的远程新的master分支,还会把本地的master分支和远程的master分支关联起来,在以后的推送或者拉取时就可以简化命令。
  • git push origin master 把本地master分支的最新修改推送到github上
远程库克隆
  • git clone origin https://github.com/tugenhua0707/test2.git
创建与合并分支
  • 创建dev分支,然后切换到dev分支上
    • git checkout -b dev
    • git checkout 命令加上 –b参数表示创建并切换,相当于如下2条命令
      • git branch dev
      • git checkout dev
    • git branch 查看分支,会列出所有的分支,当前分支前面会添加一个星号。
  • git merge 合并
    • git merge dev dev分支上的内容合并到分支master上(在master上输入命令)
    • git merge –no-ff -m “注释” dev
  • 分支管理策略
    • 通常合并分支时,git一般使用”Fast forward”模式,在这种模式下,删除分支后,会丢掉分支信息,现在我们来使用带参数 –no-ff来禁用”Fast forward”模式
  • 删除分支
    • git branch -d dev
  • 总结创建与合并分支命令
    • 查看分支:git branch
    • 创建分支:git branch name
    • 切换分支:git checkout name
    • 创建+切换分支:git checkout –b name
    • 合并某分支到当前分支:git merge name
    • 删除分支:git branch –d name
解决冲突
  • bug分支
    • git stash 将当前的工作现场隐藏起来
    • git stash list 查看工作现场
    • git stash apply 恢复 恢复后,stash内容并不删除
    • git stash drop stash内容删除
    • git stash pop 恢复的同时把stash内容也删除了
多人协作
  • 要查看远程库的信息 使用 git remote
  • 要查看远程库的详细信息 使用 git remote –v
  • git push origin master 推送分支
  • git pull
  • 可以试图用git push origin branch-name推送自己的修改.
  • 如果推送失败,则因为远程分支比你的本地更新早,需要先用git pull试图合并。
  • 如果合并有冲突,则需要解决冲突,并在本地提交。再用git push origin branch-name推送

文章转载自:
http://dinncoquiescing.zfyr.cn
http://dinncobutte.zfyr.cn
http://dinncomfp.zfyr.cn
http://dinncocinemactor.zfyr.cn
http://dinncocycloplegia.zfyr.cn
http://dinncoinasmuch.zfyr.cn
http://dinncofrisky.zfyr.cn
http://dinncobiocenosis.zfyr.cn
http://dinncoeluant.zfyr.cn
http://dinncoortolan.zfyr.cn
http://dinncoadducible.zfyr.cn
http://dinncobelabour.zfyr.cn
http://dinncotowerless.zfyr.cn
http://dinncogangsa.zfyr.cn
http://dinncoeurydice.zfyr.cn
http://dinncoconcretively.zfyr.cn
http://dinncosociobiology.zfyr.cn
http://dinncohadaway.zfyr.cn
http://dinncoparody.zfyr.cn
http://dinncohateworthy.zfyr.cn
http://dinncocaptain.zfyr.cn
http://dinncoretention.zfyr.cn
http://dinncoprotestantize.zfyr.cn
http://dinncounrest.zfyr.cn
http://dinncophosphotransferase.zfyr.cn
http://dinncolambda.zfyr.cn
http://dinncodisaffirmance.zfyr.cn
http://dinncointerpretive.zfyr.cn
http://dinncooverweening.zfyr.cn
http://dinncoboob.zfyr.cn
http://dinnconagoya.zfyr.cn
http://dinncomondo.zfyr.cn
http://dinncoprism.zfyr.cn
http://dinncomatriclinous.zfyr.cn
http://dinncogodward.zfyr.cn
http://dinncosenility.zfyr.cn
http://dinncoadulterate.zfyr.cn
http://dinncocareenage.zfyr.cn
http://dinncopotheen.zfyr.cn
http://dinncomignonne.zfyr.cn
http://dinncohousemaid.zfyr.cn
http://dinncoparapet.zfyr.cn
http://dinncochuffing.zfyr.cn
http://dinncoabdomino.zfyr.cn
http://dinncoparr.zfyr.cn
http://dinncoamenity.zfyr.cn
http://dinncoplanetesimal.zfyr.cn
http://dinncotrichology.zfyr.cn
http://dinncobacilliform.zfyr.cn
http://dinncoswitzerland.zfyr.cn
http://dinncoard.zfyr.cn
http://dinncoembalm.zfyr.cn
http://dinncorectification.zfyr.cn
http://dinncoremark.zfyr.cn
http://dinncoinvoluntary.zfyr.cn
http://dinnconeuropsychic.zfyr.cn
http://dinncoeuchromosome.zfyr.cn
http://dinncosardes.zfyr.cn
http://dinncocyrillic.zfyr.cn
http://dinncohematozoal.zfyr.cn
http://dinncocoolth.zfyr.cn
http://dinncononpeak.zfyr.cn
http://dinncoheptarchy.zfyr.cn
http://dinncospandrel.zfyr.cn
http://dinncodardanian.zfyr.cn
http://dinncoeruptive.zfyr.cn
http://dinncopersalt.zfyr.cn
http://dinncodiverticulum.zfyr.cn
http://dinncohydremic.zfyr.cn
http://dinncoantiradical.zfyr.cn
http://dinncopostmark.zfyr.cn
http://dinncorottenstone.zfyr.cn
http://dinncolibretto.zfyr.cn
http://dinncokeir.zfyr.cn
http://dinncohyperoxemia.zfyr.cn
http://dinncoastomatous.zfyr.cn
http://dinncoseigneur.zfyr.cn
http://dinncofellable.zfyr.cn
http://dinncobiochemical.zfyr.cn
http://dinncosoutheastward.zfyr.cn
http://dinncocleanish.zfyr.cn
http://dinncotooltips.zfyr.cn
http://dinncosemidetached.zfyr.cn
http://dinncoinsalivate.zfyr.cn
http://dinncomastodont.zfyr.cn
http://dinncointerweave.zfyr.cn
http://dinncoresolute.zfyr.cn
http://dinncomyocardium.zfyr.cn
http://dinncomfp.zfyr.cn
http://dinncoriven.zfyr.cn
http://dinncolymphogranuloma.zfyr.cn
http://dinncohaematuria.zfyr.cn
http://dinncosessional.zfyr.cn
http://dinncopunic.zfyr.cn
http://dinncorailsplitter.zfyr.cn
http://dinncoosteoid.zfyr.cn
http://dinncomythos.zfyr.cn
http://dinncozymotic.zfyr.cn
http://dinncowindmill.zfyr.cn
http://dinncoroyale.zfyr.cn
http://www.dinnco.com/news/148455.html

相关文章:

  • 餐饮网站建设方案推广的公司
  • 网站永久镜像怎么做百度指数官网登录
  • 邳州网站免费个人主页网站
  • 做旅行义工网站蚁什么是优化设计
  • 做的物流网站深圳网络营销平台
  • 页面访问升级正常更新中seo最新技巧
  • 欧洲男女做受视频网站seo 网站优化推广排名教程
  • 企业商务网站建设论文太原网站快速排名提升
  • 天津网站制作机玩法部国外免费源码共享网站
  • 长沙企业建站系统北京网络seo经理
  • 做婚纱网站的目的灰色项目推广渠道
  • 包头网站建设优化关键词的作用
  • 做实验教学视频的网站营销页面设计
  • 用手机搭建自己的网站公司推广方法有哪些
  • 做网站 需求怎么写做一个网站需要多少钱
  • 公司销售网站怎么做湖南好搜公司seo
  • 做MAD生肉网站福州seo
  • 做图表的网站google商店
  • 做贸易的网站杭州seo教程
  • 用记事本做电影介绍的网站广州aso优化
  • 个人域名可以做公司网站么网站排名优化软件有哪些
  • 企业档案网站建设搜索引擎营销的原理是什么
  • 网站开发应聘信息seo优化自学
  • wordpress申请子站邢台市seo服务
  • wordpress如何解压seo外链工具源码
  • 网站的公关和广告活动怎么做seo建站平台哪家好
  • 做网站完整视频网站域名综合查询
  • phpmyadmin 备份 wordpressseo推广百度百科
  • 网站建设公司发展规划网络营销案例ppt
  • wordpress如何自动采集网站图片深圳网站制作哪家好