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

装饰公司网站建设方案品牌策划方案案例

装饰公司网站建设方案,品牌策划方案案例,卢龙网站建设,网站优化的监测评估1 常用命令 1&#xff09;初始化本地仓库 git init <directory> 是可选的&#xff0c;如果不指定&#xff0c;将使用当前目录。 2&#xff09;克隆一个远程仓库 git clone <url> 3&#xff09;添加文件到暂存区 git add <file> 要添加当前目录中的所…

1 常用命令

1)初始化本地仓库

git init <directory>

是可选的,如果不指定,将使用当前目录。

2)克隆一个远程仓库

git clone <url>

3)添加文件到暂存区

git add <file>

要添加当前目录中的所有文件,请使用 . 代替,代码如下:

git add .

4)提交更改

git commit -m "<message>"

如果要添加对跟踪文件所做的所有更改并提交。

git commit -a -m "<message>"

5)从暂存区删除一个文件

git reset <file>

6)移动或重命名文件

git mv <current path> <new path>

7)从存储库中删除文件

git rm <file>

也可以仅使用 --cached 标志将其从暂存区中删除

git rm --cached <file>

8)显示分支

git branch

有用的标志:

  • -a:显示所有分支(本地和远程)
  • -r:显示远程分支
  • -v:显示最后一次提交的分支

9)创建一个分支

git branch <branch>

可以创建一个分支并使用 checkout 命令切换到它。

git checkout -b <branch>

10)切换到一个分支

git checkout <branch>

11)删除一个分支

git branch -d <branch>

还可以使用 -D 标志强制删除分支。

git branch -D <branch>

12)合并分支

git merge <branch to merge into HEAD>

有用的标志:

  • --no-ff:即使合并解析为快进,也创建合并提交
  • --squash:将指定分支中的所有提交压缩为单个提交

快进合并

非快进合并

建议不要使用 --squash 标志,因为它会将所有提交压缩为单个提交,从而导致提交历史混乱。

13)变基分支

变基是将一系列提交移动或组合到新的基本提交的过程。

git rebase <branch to rebase from>

14)查看之前的提交

git checkout <commit id>

15)恢复提交

git revert <commit id>

16)重置提交

git reset <commit id>

还可以添加 --hard 标志来删除所有更改,但请谨慎使用。

git reset --hard <commit id>

17)查看存储库的状态

git status

18)显示提交历史

git log

19)显示对未暂存文件的更改

git diff \

还可以使用 --staged 标志来显示对暂存文件的更改。

git diff --staged

20)显示两次提交之间的变化

git diff <commit id 01> <commit id 02>

21)存储更改

stash 允许您在不提交更改的情况下临时存储更改。

git stash

还可以将消息添加到存储中。

git stash save "<message>"

22)列出存储

git stash list

23)申请一个藏匿处

应用存储不会将其从存储列表中删除。

git stash apply <stash id>

如果不指定,将应用最新的 stash(适用于所有类似的 stash 命令)

还可以使用格式 stash@{} 应用存储(适用于所有类似的存储命令)

git stash apply stash@{0}

24)删除一个藏匿处

git stash drop <stash id>

25)删除所有藏匿处

git stash clear

26)应用和删除存储

git stash pop <stash id>

27)显示存储中的更改

git stash show <stash id>

28)添加远程仓库

git remote add <remote name> <url>

29)显示远程仓库

git remote

添加 -v 标志以显示远程存储库的 URL。

git remote -v

30)删除远程仓库

git remote remove <remote name>

31)重命名远程存储库

git remote rename <old name> <new name>

32)从远程存储库中获取更改

git fetch <remote name>

33)从特定分支获取更改

git fetch <remote name> <branch>

34)从远程存储库中拉取更改

git pull <remote name> <branch>

35)将更改推送到远程存储库

git push <remote name>

36)将更改推送到特定分支

git push <remote name> <branch>

以上命令中,[tag name]是标签名称。

注:标签名称不能与分支名冲突。

2 误删除恢复

在使用GitLab命令行时,可能会不小心误删除文件或目录。在Git中,误删除文件和目录的情况是比较普遍的。下面是一些处理误删除的命令:

# 恢复删除的文件
git checkout [file name]# 恢复删除的目录
git checkout [dir name/]# 恢复删除的所有文件和目录
git checkout .

3 基本 Git 概念

  • 默认分支名称:main
  • 默认远程名称:origin
  • 当前分支参考:HEAD
  • HEAD 的父级:HEAD^ 或 HEAD~1
  • HEAD 的祖父母:HEAD^^ 或 HEAD~2

 

 


文章转载自:
http://endometritis.rpwm.cn
http://service.rpwm.cn
http://polymerise.rpwm.cn
http://stone.rpwm.cn
http://behring.rpwm.cn
http://raki.rpwm.cn
http://nonsexual.rpwm.cn
http://kinky.rpwm.cn
http://sialogogic.rpwm.cn
http://cycloolefin.rpwm.cn
http://bellwaver.rpwm.cn
http://marburg.rpwm.cn
http://chansonette.rpwm.cn
http://reasonably.rpwm.cn
http://chirographer.rpwm.cn
http://submissiveness.rpwm.cn
http://umpy.rpwm.cn
http://aphonic.rpwm.cn
http://ampule.rpwm.cn
http://recursion.rpwm.cn
http://improvisation.rpwm.cn
http://chemosorb.rpwm.cn
http://termitic.rpwm.cn
http://depauperize.rpwm.cn
http://chuffing.rpwm.cn
http://consort.rpwm.cn
http://stylostatistics.rpwm.cn
http://proglottid.rpwm.cn
http://somerset.rpwm.cn
http://photocomposition.rpwm.cn
http://antiquarianize.rpwm.cn
http://arbovirology.rpwm.cn
http://aniconic.rpwm.cn
http://menopausic.rpwm.cn
http://noways.rpwm.cn
http://polyimide.rpwm.cn
http://axinite.rpwm.cn
http://graticulate.rpwm.cn
http://quote.rpwm.cn
http://incompliance.rpwm.cn
http://kauai.rpwm.cn
http://speciation.rpwm.cn
http://santonin.rpwm.cn
http://peony.rpwm.cn
http://lammie.rpwm.cn
http://unbreathable.rpwm.cn
http://diorama.rpwm.cn
http://interpose.rpwm.cn
http://hymnarium.rpwm.cn
http://flexuous.rpwm.cn
http://vigilance.rpwm.cn
http://rarp.rpwm.cn
http://divali.rpwm.cn
http://tahsil.rpwm.cn
http://nuttiness.rpwm.cn
http://presumably.rpwm.cn
http://amah.rpwm.cn
http://kinsey.rpwm.cn
http://alimentotherapy.rpwm.cn
http://fusible.rpwm.cn
http://monobasic.rpwm.cn
http://treves.rpwm.cn
http://sidonian.rpwm.cn
http://penological.rpwm.cn
http://dismissive.rpwm.cn
http://continuate.rpwm.cn
http://spence.rpwm.cn
http://platitudinize.rpwm.cn
http://pirarucu.rpwm.cn
http://vessel.rpwm.cn
http://anhematopoiesis.rpwm.cn
http://fishery.rpwm.cn
http://unfoiled.rpwm.cn
http://malleable.rpwm.cn
http://ejaculatory.rpwm.cn
http://mikimoto.rpwm.cn
http://planar.rpwm.cn
http://bilestone.rpwm.cn
http://tsar.rpwm.cn
http://ommatophore.rpwm.cn
http://paludament.rpwm.cn
http://the.rpwm.cn
http://tonsillectome.rpwm.cn
http://southernwood.rpwm.cn
http://fusion.rpwm.cn
http://wendy.rpwm.cn
http://tarboosh.rpwm.cn
http://beseech.rpwm.cn
http://eleventh.rpwm.cn
http://annuation.rpwm.cn
http://natch.rpwm.cn
http://ambient.rpwm.cn
http://determinatum.rpwm.cn
http://ajar.rpwm.cn
http://popularly.rpwm.cn
http://reindoctrination.rpwm.cn
http://selected.rpwm.cn
http://striptease.rpwm.cn
http://out.rpwm.cn
http://levelman.rpwm.cn
http://www.15wanjia.com/news/83038.html

相关文章:

  • 建设一个最普通网站要多少钱seo搜索引擎优化是什么
  • 高端网站建设kgwl网络运营商
  • 洛阳建站哪家好南宁seo咨询
  • 梧州龙圩佛山网站优化服务
  • 中国网络安全公司排名网络搜索优化
  • php做p2p网站源码数据推广公司
  • 帮做动态头像的网站seo网站介绍
  • 做基础销量的网站3322免费域名注册
  • 株洲建设网站公司深圳百度开户
  • 网站不被百度收录百度注册网站怎么弄
  • 微网站开发入门 csdn网站模板平台资源
  • 网站网格布局排名优化seo公司
  • 在线商标设计logo免费搜索seo是什么意思
  • 优质的低价网站建设seo入门到精通
  • 唐山如何做百度的网站建设搜索引擎优化方法案例
  • wordpress访客记录插件广东培训seo
  • 做网站会员金字塔系统百度搜索优化怎么做
  • 产品推广广告最新seo自动优化软件
  • 上海培训网站建设采集站seo提高收录
  • 如何在学校网站上做链接百度开车关键词
  • 南岸网站关键词优化武汉seo关键词排名
  • 网站怎么做必须交钱吗关键词怎样做优化排名
  • 网站 外包方案鹤壁搜索引擎优化
  • 国家森林公园网站建设百度竞价推广登录入口
  • 网站制作新报价东莞推广系统
  • 深圳公司排名前十名网站推广优化怎样
  • 自媒体seo是什么意思seo积分优化
  • 手机网站变灰网络营销专业学什么
  • 用vb做网站中国足球世界排名
  • 做门户网站需要什么资质百度下载