亚洲国产日韩欧美一区二区三区,精品亚洲国产成人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-mv  - 移動(dòng)或重命名文件,目錄或符號(hào)鏈接

概要

git mv <options>… <args>…

描述

移動(dòng)或重命名文件,目錄或符號(hào)鏈接。

git mv [-v] [-f] [-n] [-k] <source> <destination>git mv [-v] [-f] [-n] [-k] <source> ... <destination directory>

在第一種形式中,它將 <source> 重命名為 <destination> ,它必須存在,并且可以是文件,符號(hào)鏈接或目錄。在第二種形式中,最后一個(gè)參數(shù)必須是現(xiàn)有目錄; 給定的源將被移動(dòng)到這個(gè)目錄中。

成功完成后更新索引,但仍必須提交更改。

選項(xiàng)

-f   --force

即使目標(biāo)存在,也要強(qiáng)制重命名或移動(dòng)文件

-k

跳過移動(dòng)或重命名會(huì)導(dǎo)致錯(cuò)誤情況的操作。當(dāng)源既不存在也不受 Git 控制時(shí),或者除非-f給出,否則會(huì)覆蓋現(xiàn)有文件時(shí)發(fā)生錯(cuò)誤。

-n   --dry-run

沒做什么; 只顯示會(huì)發(fā)生什么

-v   --verbose

報(bào)告移動(dòng)文件的名稱。

子模塊

使用 gitfile 移動(dòng)子模塊(意味著它們使用 Git 1.7.8 或更高版本進(jìn)行克?。⒏?gitfile 和 core.worktree 設(shè)置,以使子模塊在新位置工作。它還會(huì)嘗試更新 gitmodules [5] 文件中的 submodule 。<name> .path 設(shè)置并對(duì)該文件執(zhí)行階段操作(除非使用了-n )。

Bugs

每次超級(jí)項(xiàng)目更新移動(dòng)填充的子模塊時(shí)(例如,在移動(dòng)之前和之后在提交之間切換時(shí))舊的子模塊檢出將保留在舊位置,并且新的位置將出現(xiàn)空目錄。要在新位置再次填充子模塊,用戶必須在之后運(yùn)行 “git submodule update” 。刪除舊目錄僅在使用 gitfile 時(shí)才是安全的,否則子模塊的歷史記錄也會(huì)被刪除。當(dāng)遞歸子模塊更新已經(jīng)實(shí)施時(shí),這兩個(gè)步驟都將被廢棄。

Previous article: Next article: