一区二区三区日韩精品-日韩经典一区二区三区-五月激情综合丁香婷婷-欧美精品中文字幕专区

分享

git branch

 蘭亭文藝 2019-03-27

git-branch - List, create, or delete branches


SYNOPSIS

git branch [--color[=<when>] | --no-color] [-r | -a]

[--list] [-v [--abbrev=<length> | --no-abbrev]]

[--column[=<options>] | --no-column] [--sort=<key>]

[(--merged | --no-merged) [<commit>]]

[--contains [<commit]] [--no-contains [<commit>]]

[--points-at <object>] [--format=<format>] [<pattern>…?]

git branch [--track | --no-track] [-f] <branchname> [<start-point>]

git branch (--set-upstream-to=<upstream> | -u <upstream>) [<branchname>]

git branch --unset-upstream [<branchname>]

git branch (-m | -M) [<oldbranch>] <newbranch>

git branch (-c | -C) [<oldbranch>] <newbranch>

git branch (-d | -D) [-r] <branchname>…?

git branch --edit-description [<branchname>]


DESCRIPTION

If --list is given, or if there are no non-option arguments, existing branches are listed; the current branch will be highlighted with an asterisk. 

Option -r causes the remote-tracking branches to be listed.

Option -a shows both local and remote branches. If a <pattern>is given, it is used as a shell wildcard to restrict the output to matching branches. 

If multiple patterns are given, a branch is shown if it matches any of the patterns. Note that when providing a<pattern>, you must use --list; otherwise the command is interpreted as branch creation.

With --contains, shows only the branches that contain the named commit(in other words, the branches whose tip commits are descendants of the named commit), --no-contains inverts it. 

With --merged, only branches merged into the named commit (i.e. the branches whose tip commits are reachable from the named commit) will be listed. 

 With --no-merged only branches not merged into the named commit will be listed. If the <commit>argument is missing it defaults to HEAD (i.e. the tip of the current branch).

The command’s second form creates a new branch head named <branch name>which points to the current HEAD, or <start-point> if given.

Note that this will create the new branch, but it will not switch the working tree to it; use 'git checkout <new branch>' to switch to the new branch.

When a local branch is started off a remote-tracking branch, Git sets up the branch (specifically the branch.<name>.remote and branch.<name>.merge configuration entries) so that git pull will appropriately merge from the remote-tracking branch. This behavior may be changed via the global branch.autoSetup Merge configuration flag. That setting can be overridden by using the --track and --no-track options, and changed later using git branch --set-upstream-to.

With a -m or -M option, <old branch> will be renamed to <new branch>.If <old branch> had a corresponding reflog, it is renamed to match<new branch>, and a reflog entry is created to remember the branch renaming. If <new branch> exists, -M must be used to force the rename to happen.

The -c and -C options have the exact same semantics as -m and-M, except instead of the branch being renamed it along with its config and reflog will be copied to a new name.

With a -d or -D option, <branchname> will be deleted. You may specify more than one branch for deletion. If the branch currently has a reflog then the reflog will also be deleted.

Use -r together with -d to delete remote-tracking branches. Note, that it only makes sense to delete remote-tracking branches if they no longer exist in the remote repository or if git fetch was configured not to fetch them again. See also the prune subcommand of git-remote[1] for away to clean up all obsolete remote-tracking branches.

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類似文章 更多

    欧美日韩黄片免费试看 | 欧美老太太性生活大片| 青青久久亚洲婷婷中文网| 亚洲精品一二三区不卡| 精品人妻一区二区三区四在线| 亚洲最新中文字幕一区| 久久永久免费一区二区| 91人妻久久精品一区二区三区 | 精品一区二区三区中文字幕 | 欧美午夜不卡在线观看| 一级片二级片欧美日韩| 国产在线观看不卡一区二区| 中文字幕日韩欧美理伦片| 婷婷色香五月综合激激情| 蜜桃臀欧美日韩国产精品| 开心五月激情综合婷婷色| 国产精品二区三区免费播放心| 日韩中文字幕免费在线视频| 欧美中文日韩一区久久| 久一视频这里只有精品| 高潮少妇高潮久久精品99| 黑色丝袜脚足国产一区二区| 好吊妞视频免费在线观看| 国产福利一区二区三区四区| 黑人巨大精品欧美一区二区区| 亚洲欧美日本国产不卡| 成人免费观看视频免费| 久久99这里只精品热在线| 国产欧美日韩在线精品一二区| 人妻亚洲一区二区三区| 人妻乱近亲奸中文字幕| 最近日韩在线免费黄片| 日本不卡一本二本三区| 一区二区日韩欧美精品| 好吊日视频这里都是精品| 在线免费国产一区二区| 日韩成人动画在线观看| 暴力三级a特黄在线观看| 午夜成年人黄片免费观看| 中文字幕91在线观看| 五月婷日韩中文字幕四虎|