亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

directory search
Guides gitattributes giteveryday gitglossary gitignore gitmodules gitrevisions gittutorial gitworkflows Administration git archive git bundle git clean git filter-branch git fsck git gc git instaweb git reflog Basic Snapshotting git add git commit git diff git mv git reset git rm git status Branching and Merging git branch git checkout git log git merge git mergetool git stash git tag Debugging git bisect git blame git grep Email git am git format-patch git request-pull git send-email External Systems git fast-import git svn Getting and Creating Projects git clone git init Git git annotate git archimport git bisect-lk2009 git check-attr git check-mailmap git check-ref-format git checkout-index git cherry git citool git column git credential git credential-cache git credential-store git cvsexportcommit git cvsimport git cvsserver git diff-files git diff-tree git difftool git fast-export git fetch-pack git fmt-merge-msg git get-tar-commit-id git gui git http-backend git http-fetch git http-push git imap-send git index-pack git interpret-trailers git ls-remote git ls-tree git mailinfo git mailsplit git merge-file git merge-index git merge-one-file git merge-tree git mktag git mktree git name-rev git notes git p4 git pack-objects git pack-redundant git pack-refs git parse-remote git patch-id git prune git prune-packed git quiltimport git receive-pack git remote-ext git remote-fd git remote-testgit git repack git replace git rerere git send-pack git sh-i18n git sh-setup git shell git show-branch git show-index git stripspace git unpack-file git unpack-objects git upload-archive git upload-pack git var git verify-commit git verify-tag git whatchanged git worktree Inspection and Comparison git describe git shortlog git show Miscellaneous api credentials api index gitcli gitcore tutorial gitcredentials gitcvs migration gitdiffcore githooks gitk gitnamespaces gitremote helpers gitrepository layout gitsubmodules gittutorial 2 gitweb gitweb.conf pack format User Manual Patching git apply git cherry-pick git rebase git revert Plumbing Commands git cat-file git check-ignore git commit-tree git count-objects git diff-index git for-each-ref git hash-object git ls-files git merge-base git read-tree git rev-list git rev-parse git show-ref git symbolic-ref git update-index git update-ref git verify-pack git write-tree Server Admin git daemon git update-server-info Setup and Config git git config git help Sharing and Updating Projects git fetch git pull git push git remote git submodule
characters

命名

git-symbolic-ref  - 讀取,修改和刪除符號(hào)引用

概要

git symbolic-ref [-m <reason>] <name> <ref>git symbolic-ref [-q] [--short] <name>git symbolic-ref --delete [-q] <name>

描述

給定一個(gè)參數(shù),讀取哪個(gè)分支頭部給定的符號(hào)ref引用并輸出其相對(duì)于.git/目錄的路徑。通常,您會(huì)HEAD以<name>參數(shù)的形式提供您的工作樹(shù)所在的分支。

給定兩個(gè)參數(shù),創(chuàng)建或更新符號(hào)ref <name>以指向給定分支<ref>。

給定--delete和額外的參數(shù),刪除給定的符號(hào)參考。

符號(hào)ref是一個(gè)常規(guī)文件,它存儲(chǔ)了一個(gè)以字符串開(kāi)頭的字符串ref: refs/。例如,你.git/HEAD的內(nèi)容是一個(gè)普通文件ref: refs/heads/master

選項(xiàng)

-d   --delete

刪除符號(hào)ref <名稱(chēng)>。

-q   --quiet

如果<name>不是符號(hào)引用,而是分離的HEAD,則不要發(fā)出錯(cuò)誤消息; 而是靜靜地退出非零狀態(tài)。

--short

當(dāng)示出了作為一個(gè)符號(hào)REF <名稱(chēng)>的值,盡量縮短值,例如從refs/heads/mastermaster。

-m

使用<reason>更新<名稱(chēng)>的reflog。這僅在創(chuàng)建或更新符號(hào)引用時(shí)有效。

注意

過(guò)去,這.git/HEAD是一個(gè)象征性的鏈接refs/heads/master。當(dāng)我們想切換到另一個(gè)分支時(shí),我們做了ln -sf refs/heads/newbranch .git/HEAD,當(dāng)我們想知道我們?cè)谀膫€(gè)分支時(shí),我們做到了readlink .git/HEAD。但符號(hào)鏈接不是完全可移植的,因此它們現(xiàn)在已被棄用,并且默認(rèn)情況下使用符號(hào)引用(如上所述)。

如果符號(hào)ref的內(nèi)容打印正確,git symbolic-ref將以狀態(tài)0退出,如果請(qǐng)求的名稱(chēng)不是符號(hào)參考,則為狀態(tài)1;如果發(fā)生另一錯(cuò)誤,則為128。

Previous article: Next article: