![]() ![]() This lists detached HEAD (if present) first, then local branches and finally remote-tracking branches. Sort order defaults to the value configured for the branch.sort variable if it exists, or to sorting based on the full refname (including refs/. The keys supported are the same as those in git for-each-ref. You may use the -sort= option multiple times, in which case the last key becomes the primary key. Prefix - to sort in descending order of the value. In order to operate on remote branches, a remote repo must first be configured and added to the local repo config. The git branch command also works on remote branches. It doesnât let you switch between branches or put a forked history back together again. ![]() åªååºå å«æå®æ交çåæ¯ï¼å¦æ没ææå®å为HEADï¼ãæå³ç -listã -no-contains The git branch command lets you create, list, rename, and delete branches. If a is given, it is used as a shell.When in list mode, show sha1 and commit subject line for each head, along with relationship to upstream branch (if any). Option -r causes the remote-tracking branches to be listed, and option -a shows both local and remote branches. git branch would try to create a branch, use git branch -list to list matching branches.-v -vv -verbose.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |