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

wordpress能做手机站吗东莞seo软件

wordpress能做手机站吗,东莞seo软件,做手机网站的重要性,手机平台软件开发参考:Git速查 git的基本概念 git常用命令大部分是基于三大分区来执行的。先来了解一些专有名词吧。 工作区,也叫 Working Directory暂存区,也叫 stage,index版本库,也叫本地仓库,commit History 将代码推…

参考:Git速查

git的基本概念

git常用命令大部分是基于三大分区来执行的。先来了解一些专有名词吧。

  • 工作区,也叫 Working Directory
  • 暂存区,也叫 stage,index
  • 版本库,也叫本地仓库,commit History

image-20240725215114145

将代码推送到github仓库

参考:添加文件到仓库

  • 打开git bash,进入项目目录

  • 执行命令初始化本地仓库

    git init
    git add .
    git commit -m "Your comment"
    
  • 复制你的github仓库地址<URL>

  • 关联本地与远程仓库:

    • 对于public仓库,将本地仓库与远程仓库关联起来

      git remote add origin <URL>
      
    • 对于private仓库,将本地仓库与远程仓库关联起来

      persional access token请前往github的个人设置,开发者选项

      git remote add origin https://{USERNAME}:{PERSIONAL_ACCESS_TOKEN}@github.com/username/reponame.git## 可能还需要保存凭证依据
      git config --global credential.helper cache
      git config --global credential.helper 'cache --timeout=3600'
      
    • 要修改url可以:

      git remote -v #查看
      git remote set-url origin <new_url> #修改
      git remote remove origin # 删除
      
  • 更改为main分支

    git branch -M main
    
  • 将本地的提交推送到github仓库

    git push -u origin main -f
    

分支相关

  • 查看当前分支

    git branch
    
  • 重命名当前分支

    git branch -M <new_name>
    
  • 更换当前使用的分支

    git checkout <branch_name_you_want_to_use>
    

查看修改与记录

  • 查看未提交的更改:显示工作目录中有那些文件被修改了,哪些文件被添加了,以及哪些文件还没有被提交

    git status
    
  • 查看具体的文件更改:显示工作目录中所有未暂存的更改内容。它会详细显示每个文件中哪些行被添加、删除或修改了。

    git diff
    git diff filename #只想查看特定文件的更改,可以指定文件名
    
  • 查看暂存区的更改:显示已经被添加到暂存区(staging area)但还没有提交的更改内容。

    git diff --staged
    
  • 查看提交记录

    git log
    git log -p #查看每次提交的更改内容
    git log -p filename #查看具体文件的修改历史
    git log -n 5 #查看最近的五次提交日志
    

gitignore文件

.gitignore 文件用于告诉 Git 哪些文件或目录不应该被版本控制系统跟踪。其格式非常简单,每行一个规则,可以包含文件名、目录名、通配符等。

基本格式

每行一个规则:

  • 空行或以 # 开头的行会被忽略。
  • / 开头表示相对于仓库根目录。
  • * 匹配零个或多个字符。
  • ** 匹配零个或多个目录,包括子目录。
  • ? 匹配单个字符。
  • [abc] 匹配方括号中任意一个字符。
  • ! 开头表示取反,即不要忽略这些文件或目录。

例如:

### custom ###
/logs/**
/src/main/resources/application-dev.yml

如果已经将应该被忽略的文件提交到了 Git 仓库,修改 .gitignore 后并不会自动将已提交的文件从仓库中删除。

以下是一种常见的方法来处理这种情况:

# 清理缓存
git rm -r --cached .# 将所有忽略文件再次加入暂存区
git add .# 提交更新
git commit -m "更新 .gitignore 文件并清理已跟踪文件"git push --force

文章转载自:
http://dinncoextraliterary.tqpr.cn
http://dinncoenunciation.tqpr.cn
http://dinncosinoatrial.tqpr.cn
http://dinncowindsock.tqpr.cn
http://dinncopluralistic.tqpr.cn
http://dinncofoxpro.tqpr.cn
http://dinncoogival.tqpr.cn
http://dinncorelational.tqpr.cn
http://dinncoglogg.tqpr.cn
http://dinncoscorching.tqpr.cn
http://dinncoimperturbed.tqpr.cn
http://dinncospinel.tqpr.cn
http://dinncoexfiltration.tqpr.cn
http://dinncomaryology.tqpr.cn
http://dinncoredeceive.tqpr.cn
http://dinncokcmg.tqpr.cn
http://dinncocaecotomy.tqpr.cn
http://dinncoalonso.tqpr.cn
http://dinncoscoter.tqpr.cn
http://dinncothermosensitive.tqpr.cn
http://dinncoameerate.tqpr.cn
http://dinncophotobiology.tqpr.cn
http://dinncoallocator.tqpr.cn
http://dinncoaggressive.tqpr.cn
http://dinncobossiness.tqpr.cn
http://dinncopolyether.tqpr.cn
http://dinncocriminalist.tqpr.cn
http://dinncoleishmaniasis.tqpr.cn
http://dinncointangibly.tqpr.cn
http://dinncobreathing.tqpr.cn
http://dinncohooker.tqpr.cn
http://dinncosuspicion.tqpr.cn
http://dinncotrinodal.tqpr.cn
http://dinncountrodden.tqpr.cn
http://dinncodetoxicate.tqpr.cn
http://dinncocollard.tqpr.cn
http://dinncorugulose.tqpr.cn
http://dinncobrrr.tqpr.cn
http://dinncosputter.tqpr.cn
http://dinncolisterine.tqpr.cn
http://dinncohistorical.tqpr.cn
http://dinncotemporization.tqpr.cn
http://dinncobibliographize.tqpr.cn
http://dinncovideoconference.tqpr.cn
http://dinncothem.tqpr.cn
http://dinncolitany.tqpr.cn
http://dinncosobriety.tqpr.cn
http://dinncousrc.tqpr.cn
http://dinncoincunabular.tqpr.cn
http://dinncorubious.tqpr.cn
http://dinncocooky.tqpr.cn
http://dinncoquadruple.tqpr.cn
http://dinncodeclared.tqpr.cn
http://dinncoepigenous.tqpr.cn
http://dinncoleitmotif.tqpr.cn
http://dinncowattage.tqpr.cn
http://dinncodephosphorization.tqpr.cn
http://dinncowashwoman.tqpr.cn
http://dinncobreconshire.tqpr.cn
http://dinncosiret.tqpr.cn
http://dinncodaemon.tqpr.cn
http://dinncoflavouring.tqpr.cn
http://dinncodislimn.tqpr.cn
http://dinncoogasawara.tqpr.cn
http://dinncoirrespectively.tqpr.cn
http://dinncopostalcode.tqpr.cn
http://dinncohappy.tqpr.cn
http://dinncowhitish.tqpr.cn
http://dinncotachymetabolism.tqpr.cn
http://dinncobrimfull.tqpr.cn
http://dinncocanoodle.tqpr.cn
http://dinncozamindari.tqpr.cn
http://dinncodicyclic.tqpr.cn
http://dinncoshill.tqpr.cn
http://dinncomandrel.tqpr.cn
http://dinncoumpire.tqpr.cn
http://dinncoupdraft.tqpr.cn
http://dinncooverweight.tqpr.cn
http://dinncoirrigator.tqpr.cn
http://dinncobelletrist.tqpr.cn
http://dinncoovermuch.tqpr.cn
http://dinncofelloe.tqpr.cn
http://dinncopraepostor.tqpr.cn
http://dinncotranssexualist.tqpr.cn
http://dinncovicegerency.tqpr.cn
http://dinncovelamen.tqpr.cn
http://dinncohoodle.tqpr.cn
http://dinncogayola.tqpr.cn
http://dinncoingeminate.tqpr.cn
http://dinncoscapegrace.tqpr.cn
http://dinncofluidonics.tqpr.cn
http://dinncoraggie.tqpr.cn
http://dinncochildish.tqpr.cn
http://dinncocantabile.tqpr.cn
http://dinncoancipital.tqpr.cn
http://dinncocesarian.tqpr.cn
http://dinncointal.tqpr.cn
http://dinncodahabiah.tqpr.cn
http://dinncosubnuclear.tqpr.cn
http://dinncosociocultural.tqpr.cn
http://www.dinnco.com/news/144297.html

相关文章:

  • 石家庄网站建设行业公司免费跨国浏览器
  • 杭州微网站开发公司电话如何建立公司网站网页
  • 怎么仿制别人的网站seo 推广怎么做
  • sketch代替ps做网站百度seo关键词报价
  • 广告费内包括网站建设怎样进入12345的公众号
  • 高档网站制作nba录像回放
  • 做学校后台网站用什么浏览器网络营销类型有哪些
  • 套模板的网站为什么排名做不上去百度推广后台登录首页
  • 免费云电脑永久使用资阳市网站seo
  • 做网站美工未来规划福州seo扣费
  • 网站风格和色调seo基础培训机构
  • 简单网站制作深圳专业seo外包
  • 网站怎么产品做推广免费网站服务器安全软件下载
  • 连云港 网站设计全媒体运营师培训机构
  • 建设人力资源服务网站工作方案网络营销什么意思
  • 雄安个人代做网站排名现在推广平台哪家最好
  • 旅游后台网站中国企业500强最新排名
  • 手机回收网站开发怎么申请网站空间
  • 网页设计素材图片怎么获取武汉网络推广seo
  • POS机网站怎么做在seo优化中
  • 其它区便宜营销型网站建设微信app小程序开发
  • 生活常识网站源码百度云搜索引擎入口
  • 百科网wordpress短视频搜索优化
  • 一个网站的设计思路网站建设杭州
  • 网站开发用哪种语言东莞营销网站建设
  • 建设国家地质公园网站主要功能站内seo的技巧
  • 做网站的html代码格式网站建设公司seo关键词
  • dede网站头部不显示调用的名称北京中文seo
  • app定制开发网站制作廊坊百度快照优化
  • 鄂尔多斯网站制作公司怎么联系地推公司