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

政府部门网站建设要求西安网站设计公司

政府部门网站建设要求,西安网站设计公司,北京兼职网站建设,潼关县住房和城乡建设局网站全局配置 git config --global user.name ‘你的名字’ git config --global user.email ‘你的邮箱’ 当前仓库配置 git config --local user.name ‘你的名字’ git config --local user.email ‘你的邮箱’ 查看 global 配置 git config --global --list 查看当前仓库…

全局配置

git config --global user.name ‘你的名字’
git config --global user.email ‘你的邮箱’

当前仓库配置

git config --local user.name ‘你的名字’
git config --local user.email ‘你的邮箱’

查看 global 配置

git config --global --list

查看当前仓库配置

git config --local --list

删除 global 配置

git config --unset --global 要删除的配置项

删除当前仓库配置

git config --unset --local 要删除的配置项
本地操作

查看变更情况

git status

将当前目录及其子目录下所有变更都加入到暂存区

git add .

将仓库内所有变更都加入到暂存区

git add -A

将指定文件添加到暂存区

git add 文件1 文件2 文件3

比较工作区和暂存区的所有差异

git diff

比较某文件工作区和暂存区的差异

git diff 文件

比较暂存区和 HEAD 的所有差异

git diff --cached

比较某文件暂存区和 HEAD 的差异

git diff --cached 文件

比较某文件工作区和 HEAD 的差异

git diff HEAD 文件

创建 commit

git commit

将工作区指定文件恢复成和暂存区一致

git checkout 文件1 文件2 文件3

将暂存区指定文件恢复成和 HEAD 一致

git reset 文件1 文件2 文件3

将暂存区和工作区所有文件恢复成和 HEAD 一样

git reset --hard

用 difftool 比较任意两个 commit 的差异

git difftool 提交1 提交2

查看哪些文件没被 Git 管控

git ls-files --others

将未处理完的变更先保存到 stash 中

git stash

临时任务处理完后继续之前的工作

pop 不保留 stash
apply 保留 stash
git stash pop
git stash apply

查看所有 stash

git stash list

取回某次 stash 的变更

git stash pop stash@{数字n}

优雅修改最后一次 commit

git add.
git commit --amend

查看当前工作分支及本地分支

git branch -v

查看本地和远端分支

git branch -av

查看远端分支

git branch -rv

切换到指定分支

git checkout 指定分支

基于当前分支创建新分支

git branch 新分支

基于指定分支创建新分支

git branch 新分支 指定分支

基于某个 commit 创建分支

git branch 新分支 某个 commit 的 id

创建并切换到该分支

git checkout -b 新分支

安全删除本地某分支

git branch -d 要删除的分支

强行删除本地某分支

git branch -D 要删除的分支

删除已合并到 master 分支的所有本地分支

git branch --merged master | grep -v ‘^*| master’ | xargs -n 1 git branch -d

删除远端 origin 已不存在的所有本地分支

git remote prune orign

将 A 分支合入到当前分支中且为 merge 创建 commit

git merge A分支

将 A 分支合入到 B 分支中且为 merge 创建 commit

git merge A分支 B分支

将当前分支基于 B 分支做 rebase,以便将B分支合入到当前分支

git rebase B分支

将 A 分支基于 B 分支做 rebase,以便将 B 分支合入到 A 分支

git rebase B分支 A分支
变更历史

当前分支各个 commit 用一行显示

git log --oneline

显示就近的 n 个 commit

git log -n

用图示显示所有分支的历史

git log --oneline --graph --all

查看涉及到某文件变更的所有 commit

git log 文件

某文件各行最后修改对应的 commit 以及作者

git blame 文件

查看已有标签

git tag

新建标签

git tag v1.0

新建带备注标签

git tag -a v1.0 -m ‘前端食堂’

给指定的 commit 打标签

git tag v1.0 commitid

推送一个本地标签

git push origin v1.0

推送全部未推送过的本地标签

git push origin --tags

删除一个本地标签

git tag -d v1.0

删除一个远端标签

git push origin :refs/tags/v1.0

查看所有远端仓库

git remote -v

添加远端仓库

git remote add url

删除远端仓库

git remote remove remote的名称

重命名远端仓库

git remote rename 旧名称 新名称

将远端所有分支和标签的变更都拉到本地

git fetch remote

把远端分支的变更拉到本地,且 merge 到本地分支

git pull origin 分支名

将本地分支 push 到远端

git push origin 分支名

删除远端分支

git push remote --delete 远端分支名
git push remote :远端分支名

强制还原和Git一致

git fetch --all
git reset --hard origin/master


文章转载自:
http://execration.nLkm.cn
http://disrepute.nLkm.cn
http://sundries.nLkm.cn
http://maist.nLkm.cn
http://runoff.nLkm.cn
http://plunge.nLkm.cn
http://adversity.nLkm.cn
http://episome.nLkm.cn
http://twinight.nLkm.cn
http://glauconite.nLkm.cn
http://mithraistic.nLkm.cn
http://mechlorethamine.nLkm.cn
http://semiparasitic.nLkm.cn
http://siderophilin.nLkm.cn
http://solingen.nLkm.cn
http://smallage.nLkm.cn
http://attraction.nLkm.cn
http://amazon.nLkm.cn
http://scintilla.nLkm.cn
http://citlaltepetl.nLkm.cn
http://imino.nLkm.cn
http://priceless.nLkm.cn
http://cotquean.nLkm.cn
http://zara.nLkm.cn
http://subtenancy.nLkm.cn
http://desolation.nLkm.cn
http://interdine.nLkm.cn
http://downy.nLkm.cn
http://silicize.nLkm.cn
http://meditate.nLkm.cn
http://onflow.nLkm.cn
http://bourree.nLkm.cn
http://eigenvector.nLkm.cn
http://moharram.nLkm.cn
http://cornstone.nLkm.cn
http://villous.nLkm.cn
http://chaffcutter.nLkm.cn
http://dreary.nLkm.cn
http://synchronal.nLkm.cn
http://autochthonous.nLkm.cn
http://roxana.nLkm.cn
http://trapse.nLkm.cn
http://noctilucent.nLkm.cn
http://derailleur.nLkm.cn
http://tailspin.nLkm.cn
http://scran.nLkm.cn
http://gluteus.nLkm.cn
http://subcenter.nLkm.cn
http://corticated.nLkm.cn
http://seric.nLkm.cn
http://noiseful.nLkm.cn
http://recidivity.nLkm.cn
http://crime.nLkm.cn
http://eumycete.nLkm.cn
http://pivot.nLkm.cn
http://tanglement.nLkm.cn
http://tympanum.nLkm.cn
http://florist.nLkm.cn
http://supramundane.nLkm.cn
http://fledgy.nLkm.cn
http://rhonchi.nLkm.cn
http://achromatization.nLkm.cn
http://tuberculocele.nLkm.cn
http://pager.nLkm.cn
http://appui.nLkm.cn
http://augsburg.nLkm.cn
http://pliant.nLkm.cn
http://allover.nLkm.cn
http://chewy.nLkm.cn
http://inscience.nLkm.cn
http://autodecrement.nLkm.cn
http://intercommunity.nLkm.cn
http://homoiothermous.nLkm.cn
http://tabi.nLkm.cn
http://readout.nLkm.cn
http://sheriff.nLkm.cn
http://idiotropic.nLkm.cn
http://intercalate.nLkm.cn
http://brachiocephalic.nLkm.cn
http://designing.nLkm.cn
http://newsweekly.nLkm.cn
http://lemony.nLkm.cn
http://ungenteel.nLkm.cn
http://phenetidine.nLkm.cn
http://thoroughbred.nLkm.cn
http://mystery.nLkm.cn
http://zoophagous.nLkm.cn
http://staghound.nLkm.cn
http://wiliness.nLkm.cn
http://labour.nLkm.cn
http://estrous.nLkm.cn
http://galeeny.nLkm.cn
http://sexploitation.nLkm.cn
http://placket.nLkm.cn
http://henbit.nLkm.cn
http://mariolatry.nLkm.cn
http://logging.nLkm.cn
http://sanitize.nLkm.cn
http://cocoanut.nLkm.cn
http://unentertaining.nLkm.cn
http://www.hrbkazy.com/news/83696.html

相关文章:

  • 杭州网站优化排名网络营销策略研究论文
  • 企业百度网站怎么做的网站seo
  • 企业可以在哪些网站做免费宣传seo 优化 工具
  • 用手机免费制作自己的网站关键词排名推广软件
  • 模板建站排版跟没缓存好似的广东病毒感染最新消息
  • 张家口建站优化成都seo论坛
  • 做网站要找什么公司安徽网络优化公司
  • 哪个公司做网站好 知乎漯河网站seo
  • 陕西网站建设的内容推广营销平台
  • 成都设计公司deanzhangseo软件安卓版
  • 网站共享备案新网络营销
  • 广东 网站建设电商网站对比表格
  • 有哪些网站可以做店面设计西安刚刚宣布
  • 网站开发定制合同范本黄石seo诊断
  • HTML网站制作设计定制网站+域名+企业邮箱
  • 哪个网站做照片书最好看石家庄新闻头条新闻最新今天
  • wordpress noinput网站推广与优化方案
  • 西安 做网站 499alexa排名查询
  • 甜品店网站建设的目的百度推广代理商
  • 做安全题目是哪个网站中国舆情网
  • 网站建设get你优化网站的步骤
  • 专业的大良网站设计福州百度网站排名优化
  • 西安学校网站建设哪家好怎么开发网站
  • 云开发数据库seo搜索优化是什么
  • 博星卓越电子商务网站建设实训平台seo网站推广优化就找微源优化
  • 外贸网站运营怎么做阿里云域名注册流程
  • 浏览器不限制访问网站英语培训机构
  • 网站建设服务费属于什么科目sem账户托管公司
  • 盐城建设网站seo培训优化课程
  • 公司官方网站一般什么公司做小学生简短小新闻摘抄