mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-28 00:53:40 +00:00
Update cheatsheets
This commit is contained in:
34
git-annex
Normal file
34
git-annex
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# git annex
|
||||
|
||||
> Manage files with Git, without checking their contents in.
|
||||
> When a file is annexed, its content is moved into a key-value store, and a symlink is made that points to the content.
|
||||
> More information: <https://git-annex.branchable.com>.
|
||||
|
||||
- Initialize a repo with Git annex:
|
||||
|
||||
`git annex init`
|
||||
|
||||
- Add a file:
|
||||
|
||||
`git annex add {{path/to/file_or_directory}}`
|
||||
|
||||
- Show the current status of a file or directory:
|
||||
|
||||
`git annex status {{path/to/file_or_directory}}`
|
||||
|
||||
- Synchronize a local repository with a remote:
|
||||
|
||||
`git annex {{remote}}`
|
||||
|
||||
- Get a file or directory:
|
||||
|
||||
`git annex get {{path/to/file_or_directory}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`git annex help`
|
||||
Reference in New Issue
Block a user