• Github基础命令汇总


    解释 命令
    初始化一个Git仓库 git init
    查看分支: git branch
    创建分支: git branch
    切换分支: git checkout
    创建+切换分支: git checkout -b
    合并某分支到当前分支: git merge
    删除分支: git branch -d
    新建一个标签 git tag
    指定标签信息 git tag -a -m “blablabla…”
    用PGP签名标签 git tag -s -m “blablabla…”
    查看所有标签 git tag
    推送一个本地标签 git push origin
    推送全部未推送过的本地标签 git push origin --tags
    删除一个本地标签 git tag -d
    删除一个远程标签 git push origin :refs/tags/
    查看远程库信息 git remote -v;
    从本地推送分支 git push origin branch-name,如果推送失败,先用git pull抓取远程的新提交;
    在本地创建和远程分支对应的分支 git checkout -b branch-name origin/branch-name,本地和远程分支的名称最好一致
    建立本地分支和远程分支的关联 git branch --set-upstream branch-name origin/branch-name;
    从远程抓取分支 git pull,如果有冲突,要先处理冲突。
    工作区的状态 git status
    查看修改内容 git diff
    版本回滚 git reset --hard commit_id
    查看提交历史 git log
    查看命令历史 git reflog
  • 相关阅读:
    CF321D
    oracle 第25章 闪回技术
    oracle 第24章 Netbackup 备份恢复
    oracle 第23章 RMAN 备份恢复
    oracle 第22章 EXP/IMP/EXPDP/IMPDP 备份恢复
    oracle 第21章 dblink
    oracle 第20章 序列号和同义词
    oracle 第19章 视图
    oracle 第18章 索引
    oracle 第17章 表
  • 原文地址:https://www.cnblogs.com/x1you/p/12592108.html
Copyright © 2020-2023  润新知