Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
cc22bce1
Commit
cc22bce1
authored
Dec 15, 2017
by
Antoine Beaupré
Committed by
Achilleas Pipinellis
Dec 15, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify git-annex to LFS migration guide
parent
787c954c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
1 deletion
+28
-1
doc/workflow/lfs/migrate_from_git_annex_to_git_lfs.md
doc/workflow/lfs/migrate_from_git_annex_to_git_lfs.md
+28
-1
No files found.
doc/workflow/lfs/migrate_from_git_annex_to_git_lfs.md
View file @
cc22bce1
...
...
@@ -43,7 +43,9 @@ Annex to Git LFS.
If you know what you are doing and want to skip the reading, this is what you
need to do (we assume you have
[
git-annex enabled
][
annex-gitlab-use
]
in your
repository). Fire up a terminal, navigate to your Git repository and:
repository and that you have made backups in case something goes wrong).
Fire up a terminal, navigate to your Git repository and:
1.
Disable
`git-annex`
:
...
...
@@ -57,6 +59,7 @@ repository). Fire up a terminal, navigate to your Git repository and:
1.
Enable
`git-lfs`
:
```
git lfs install
git lfs track <files>
git add .
git commit -m "commit message"
...
...
@@ -81,9 +84,22 @@ deprecated in Git Annex version 6, so you may need to upgrade your repository
if the server also has Git Annex 6 installed. Read more in the
[
Git Annex troubleshooting tips
][
annex-tips
]
section.
1.
Backup your repository
```bash
cd repository
git annex sync --content
cd ..
git clone repository repository-backup
cd repository-backup
git annex get
cd ..
```
1.
Use
`annex direct`
:
```bash
cd repository
git annex direct
```
...
...
@@ -198,6 +214,17 @@ branches created by Git Annex: `git-annex`, and all under `synced/`.
![
repository branches
](
images/git-annex-branches.png
)
You can also do this on the commandline with:
```bash
git branch -d synced/master
git branch -d synced/git-annex
git push origin :synced/master
git push origin :synced/git-annex
git push origin :git-annex
git remote prune origin
```
If there are still some Annex objects inside your repository (
`.git/annex/`
)
or references inside
`.git/config`
, run
`annex uninit`
again:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment