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

目錄 搜尋
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
文字

命名

git-symbolic-ref  - 讀取,修改和刪除符號引用

概要

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

描述

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

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

給定--delete和額外的參數,刪除給定的符號參考。

符號ref是一個常規(guī)文件,它存儲了一個以字符串開頭的字符串ref: refs/。例如,你.git/HEAD的內容是一個普通文件ref: refs/heads/master

選項

-d   --delete

刪除符號ref <名稱>。

-q   --quiet

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

--short

當示出了作為一個符號REF <名稱>的值,盡量縮短值,例如從refs/heads/mastermaster。

-m

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

注意

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

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

上一篇: 下一篇: