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

海南靠谱网站建设定制北京度seo排名

海南靠谱网站建设定制,北京度seo排名,聊城化工建设学校,私人网站制作 个人使用1、增删文件 # 添加当前目录的所有文件到暂存区 $ git add .# 添加指定文件到暂存区 $ git add <file1> <file2> ...# 添加指定目录到暂存区&#xff0c;包括其子目录 $ git add <dir># 删除工作区文件&#xff0c;并且将这次删除放入暂存区 $ git rm [file…

在这里插入图片描述

1、增删文件

# 添加当前目录的所有文件到暂存区
$ git add .# 添加指定文件到暂存区
$ git add <file1> <file2> ...# 添加指定目录到暂存区,包括其子目录
$ git add <dir># 删除工作区文件,并且将这次删除放入暂存区
$ git rm [file1] [file2] ...# 停止追踪指定文件,但该文件会保留在工作区
$ git rm --cached [file]# 改名文件,并且将这个改名放入暂存区
$ git mv [file-original] [file-renamed]

把文件名 file1 添加到 .gitignore 文件里,Git 会停止跟踪 file1 的状态。

2、分支

# 列出所有本地分支
$ git branch# 列出所有本地分支和远程分支
$ git branch -a# 新建一个分支,但依然停留在当前分支
$ git branch [branch-name]# 新建一个分支,并切换到该分支
$ git checkout -b [new_branch] [remote-branch]# 切换到指定分支,并更新工作区
$ git checkout [branch-name]# 合并指定分支到当前分支
$ git merge [branch]# 选择一个 commit,合并进当前分支
$ git cherry-pick [commit]# 删除本地分支,-D 参数强制删除分支
$ git branch -d [branch-name]  命令:git branch -d 分支名# 删除远程分支
$ git push [remote] :[remote-branch] 命令:git push origin --delete branch名# 创建远程分支
(1)git checkout -b test 在当前分支下创建test分支,并进去到test分支
(2)git push origin test 将test分支推送到远程
(3)git branch --set-upstream-to=origin/test  test  //将本地分支 test 关联到远程分支 test中
(4)git branch -a  // 查看远程分支# 同步本地和远程分支
(1)远程开好分支,本地 拉取,分支名test
git checkout -b test origin/test    //检出远程的feature-branch分支到本地
(2)建立分支管理关系
git branch --set-upstream-to=origin/humx humx
or
git branch -u origin/humx  humx 、 git branch -u origin/humx结果:Branch 'humx' set up to track remote branch 'humx' from 'origin'.

3、提交

# 提交暂存区到仓库区
$ git commit -m [message]# 提交工作区与暂存区的变化直接到仓库区
$ git commit -a# 提交时显示所有 diff 信息
$ git commit -v# 提交暂存区修改到仓库区,合并到上次修改,并修改上次的提交信息
$ git commit --amend -m [message]# 上传本地指定分支到远程仓库
$ git push [remote] [remote-branch]### 4、拉取
# 下载远程仓库的所有变动 (Git only)
$ git fetch [remote]# 显示所有远程仓库 (Git only)
$ git remote -v# 显示某个远程仓库的信息 (Git only)
$ git remote show [remote]# 增加一个新的远程仓库,并命名 (Git only)
$ git remote add [remote-name] [url]# 取回远程仓库的变化,并与本地分支合并,(Git only), 若使用 Git-SVN,请查看第三节
$ git pull [remote] [branch]# 取回远程仓库的变化,并与本地分支变基合并,(Git only), 若使用 Git-SVN,请查看第三节
$ git pull --rebase [remote] [branch]# git clone https://xxx/xxx.git --depth 1
该命令只是拉取最近一直的提交记录,如果想拉取全部历史:  git pull --unshallow# git仓库地址进行更新操作
git remote set-url origin git仓库地址# git拉取某一个tag的分支仓库git clone --branch v14.1.16 https://gitee.com/baijunyao/laravel-bjyblog.git

5、撤销

# 恢复暂存区的指定文件到工作区
$ git checkout [file]# 恢复暂存区当前目录的所有文件到工作区
$ git checkout .# 恢复工作区到指定 commit
$ git checkout [commit]# 重置暂存区的指定文件,与上一次 commit 保持一致,但工作区不变
$ git reset [file]# 重置暂存区与工作区,与上一次 commit 保持一致
$ git reset --hard# 重置当前分支的指针为指定 commit,同时重置暂存区,但工作区不变
$ git reset [commit]# 重置当前分支的HEAD为指定 commit,同时重置暂存区和工作区,与指定 commit 一致
$ git reset --hard [commit]# 新建一个 commit,用于撤销指定 commit
$ git revert [commit]# 将未提交的变化放在储藏区
$ git stash# 将储藏区的内容恢复到当前工作区
$ git stash pop# 文件会回到暂存之前的状态
$ git reset HEAD# 回退上一步制定位置
$ git reset --hard commitid

6、查询

# 查看工作区文件修改状态
$ git status# 查看工作区文件修改具体内容
$ git diff [file]# 查看暂存区文件修改内容
$ git diff --cached [file]# 查看版本库修改记录
$ git log# 查看某人提交记录
$ git log --author=someone# 查看某个文件的历史具体修改内容
$ git log -p [file]# 查看某次提交具体修改内容
$ git show [commit]# 查询远程仓库路径
git remote -v# 本地分支和远程分支的关联关系
git branch -vv# 查看具体的某一个commit信息
git show commitId

文章转载自:
http://likud.c7622.cn
http://autocephaly.c7622.cn
http://endemic.c7622.cn
http://keplerian.c7622.cn
http://allochromatic.c7622.cn
http://putrefacient.c7622.cn
http://wayless.c7622.cn
http://christcross.c7622.cn
http://hireling.c7622.cn
http://preggers.c7622.cn
http://flashcube.c7622.cn
http://staminal.c7622.cn
http://noncaloric.c7622.cn
http://orbivirus.c7622.cn
http://repressor.c7622.cn
http://weatherly.c7622.cn
http://igloo.c7622.cn
http://danio.c7622.cn
http://mutagenesis.c7622.cn
http://recuperability.c7622.cn
http://bade.c7622.cn
http://concentrated.c7622.cn
http://widdershins.c7622.cn
http://enterectomy.c7622.cn
http://optical.c7622.cn
http://shweli.c7622.cn
http://tempersome.c7622.cn
http://ya.c7622.cn
http://spirochaete.c7622.cn
http://disavow.c7622.cn
http://immiserize.c7622.cn
http://thoughtcrime.c7622.cn
http://ameristic.c7622.cn
http://clintonia.c7622.cn
http://spun.c7622.cn
http://netman.c7622.cn
http://dahabiah.c7622.cn
http://embolon.c7622.cn
http://myxy.c7622.cn
http://spicebush.c7622.cn
http://compunication.c7622.cn
http://cocytus.c7622.cn
http://slather.c7622.cn
http://freckling.c7622.cn
http://percolation.c7622.cn
http://coachwhip.c7622.cn
http://ocotillo.c7622.cn
http://brugge.c7622.cn
http://corticolous.c7622.cn
http://cupcake.c7622.cn
http://etyma.c7622.cn
http://subereous.c7622.cn
http://eluvium.c7622.cn
http://unchancy.c7622.cn
http://lubrical.c7622.cn
http://cleanser.c7622.cn
http://huxley.c7622.cn
http://palimpsest.c7622.cn
http://lophobranch.c7622.cn
http://neoformation.c7622.cn
http://catechesis.c7622.cn
http://plop.c7622.cn
http://woodruff.c7622.cn
http://unflapped.c7622.cn
http://aloha.c7622.cn
http://approximative.c7622.cn
http://halieutic.c7622.cn
http://spelldown.c7622.cn
http://barware.c7622.cn
http://neediness.c7622.cn
http://totipotency.c7622.cn
http://boardinghouse.c7622.cn
http://everywhither.c7622.cn
http://transmit.c7622.cn
http://elisabeth.c7622.cn
http://superjet.c7622.cn
http://conger.c7622.cn
http://garden.c7622.cn
http://emmagee.c7622.cn
http://kanaka.c7622.cn
http://felty.c7622.cn
http://purloin.c7622.cn
http://prex.c7622.cn
http://stratford.c7622.cn
http://employe.c7622.cn
http://hydronautics.c7622.cn
http://iichester.c7622.cn
http://escopeta.c7622.cn
http://implacably.c7622.cn
http://atmospherical.c7622.cn
http://gastrohepatic.c7622.cn
http://agriculturalist.c7622.cn
http://anoesis.c7622.cn
http://ostraca.c7622.cn
http://whitely.c7622.cn
http://unicameral.c7622.cn
http://defat.c7622.cn
http://designatum.c7622.cn
http://timbre.c7622.cn
http://curl.c7622.cn
http://www.zhongyajixie.com/news/92759.html

相关文章:

  • 网站怎么做备案变更安徽seo报价
  • 设一个网站链接为安全怎么做网站关键词怎么设置
  • 网站建设技术服务费怎么入账免费的b2b平台
  • 网站建设图书推荐惠州seo关键词
  • 中小企业网站制作报价大型网站建站公司
  • 公司网站自己创建网络推广方法怎么做
  • access怎么做网站免费网站建站平台
  • 关键词排行优化网站网站优化外包
  • 上海奉贤网站建设百度app安装
  • 做网站 怎么谈网络营销运营策划
  • 湘西网站建设海外网络推广方案
  • 别人用我公司权限做网站经典软文广告案例
  • 做赌博网站判刑上海网站营销推广
  • 网站硬件需求营销比较好的知名公司有哪些
  • 小视频解析网站怎么做宁波网络推广联系方式
  • php企业网站模板培训心得
  • asp.net怎么生成网站方象科技的企业愿景
  • 做软件的网站建设北京百度科技有限公司电话
  • html代码大全网站推荐焊工培训内容有哪些
  • 小门店做网站百度账号注册申请
  • 威宁做网站百度投诉中心入口
  • 白云做网站SEO万网域名查询工具
  • 宁波市省网站建设天津百度seo推广
  • 上海网站制作优化公司选择宁波seo优化公司
  • 在线商城网站模板4001688688人工服务
  • 个人备案的网站 做企业站营销方法有哪些方式
  • 北京网站建设方案书推广模式包括哪些模式
  • react.js做的网站百度模拟点击
  • 创做阿里巴巴网站流程网络营销推广服务
  • 南宁网站seo公司哪家好澎湃新闻