![]() Use the -everything option to specify that all refs should be examined, including all remote refs. They may also be excluded by prefixing them with ^ or providing them in -exclude-ref options. To examine or modify files in branches other than the currently checked-out one, branch refs may be specified directly, or provided in one or more -include-ref options. This is a step which should be taken with care, since you will be altering the Git history on your remotes. Once you are satisfied with the changes, you will need to force-push the new Git history of any rewritten branches to all your remotes. You should therefore always first commit or stash any uncommitted work before using the import or export modes, and then validate the result of the migration before pushing the changes to your remotes, for instance by running the info mode and by examining your rewritten commit history. (The exception is the "no-rewrite" import sub-mode see Import Without Rewriting History for details.) This is intentional as the import and export modes are generally "destructive" in the sense that they rewrite your Git history, changing commits and generating new commit SHAs. When converting files to or from Git LFS, the git lfs migrate command will only make changes to your local repository and working copy, never any remotes. Multiple options are available to override these defaults. In all modes, by default git lfs migrate operates only on the currently checked-out branch, and only on files (of any size and type) added in commits which do not exist on any remote. The import mode converts Git files (i.e., blobs) to Git LFS, while the export mode does the reverse, and the info mode provides an informational summary which may be useful in deciding which files to import or export. Git lfs migrate DescriptionĬonvert files in a Git repository to or from Git LFS pointers, or summarize Git file sizes by file type. ![]() Migrate history to or from Git LFS Synopsis ![]() Migrate without rewriting local history. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |