栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

git相关 持续更新

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

git相关 持续更新

1. 删除分支
1.1 根据最后代码框里usage信息可知,删除分支对应的git操作 应该是 【git branch 再加什么东西】。
1.2 根据代码框里usage信息:使用【git help branch】命令查看跟 branch相关的操作,如下:
可以看到 【git branch -d 】命令就是删除 分支。

NAME
       git-branch - List, create, or delete branches

SYNOPSIS
       git branch [--color[=] | --no-color] [--show-current]
               [-v [--abbrev= | --no-abbrev]]
               [--column[=] | --no-column] [--sort=]
               [(--merged | --no-merged) []]
               [--contains []]
               [--points-at ] [--format=]
               [(-r | --remotes) | (-a | --all)]
               [--list] [...]
       git branch [--track | --no-track] [-f]  []
       git branch (--set-upstream-to= | -u ) []
       git branch --unset-upstream []
       git branch (-m | -M) [] 
       git branch (-c | -C) [] 
       git branch (-d | -D) [-r] ...
       git branch --edit-description []

*省略部分*

OPTIONS
       -d, --delete
           Delete a branch. The branch must be fully merged in its upstream branch, or in HEAD if no upstream was set with --track or --set-upstream-to.

       -D
           Shortcut for --delete --force. 

安装git的情况下,命令行直接输入git,显示以下信息


usage: git [--version] [--help] [-C ] [-c =]
           [--exec-path[=]] [--html-path] [--man-path] [--info-path]
           [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare]
           [--git-dir=] [--work-tree=] [--namespace=]
            []

These are common Git commands used in various situations:

start a working area (see also: git help tutorial)
   clone     Clone a repository into a new directory
   init      Create an empty Git repository or reinitialize an existing one

work on the current change (see also: git help everyday)
   add       Add file contents to the index
   mv        Move or rename a file, a directory, or a symlink
   restore   Restore working tree files
   rm        Remove files from the working tree and from the index

examine the history and state (see also: git help revisions)
   bisect    Use binary search to find the commit that introduced a bug
   diff      Show changes between commits, commit and working tree, etc
   grep      Print lines matching a pattern
   log       Show commit logs
   show      Show various types of objects
   status    Show the working tree status

grow, mark and tweak your common history
   branch    List, create, or delete branches
   commit    Record changes to the repository
   merge     Join two or more development histories together
   rebase    Reapply commits on top of another base tip
   reset     Reset current HEAD to the specified state
   switch    Switch branches
   tag       Create, list, delete or verify a tag object signed with GPG

collaborate (see also: git help workflows)
   fetch     Download objects and refs from another repository
   pull      Fetch from and integrate with another repository or a local branch
   push      Update remote refs along with associated objects

'git help -a' and 'git help -g' list available subcommands and some
concept guides. See 'git help ' or 'git help '
to read about a specific subcommand or concept.
See 'git help git' for an overview of the system.

转载请注明:文章转载自 www.mshxw.com
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号