Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
8ad9b315
Unverified
Commit
8ad9b315
authored
Oct 09, 2020
by
Duc Nguyen
Committed by
GitHub
Oct 09, 2020
Browse files
Add git-lfs plugin (#9077)
parent
58ff4e1d
Changes
3
Show whitespace changes
Inline
Side-by-side
.github/CODEOWNERS
View file @
8ad9b315
# Plugin owners
plugins/gitfast/ @felipec
plugins/sdk/ @rgoldberg
plugins/git-lfs/ @vietduc01100001
plugins/git-lfs/README.md
0 → 100644
View file @
8ad9b315
# git lfs plugin
The git lfs plugin provides
[
aliases
](
#aliases
)
and
[
functions
](
#functions
)
for
[
git-lfs
](
https://github.com/git-lfs/git-lfs
)
.
To use it, add
`git-lfs`
to the plugins array in your zshrc file:
```
zsh
plugins
=(
... git-lfs
)
```
## Aliases
| Alias | Command |
| :------- | :---------------------------------- |
|
`glfsi`
|
`git lfs install`
|
|
`glfst`
|
`git lfs track`
|
|
`glfsls`
|
`git lfs ls-files`
|
|
`glfsmi`
|
`git lfs migrate import --include=`
|
## Functions
| Function | Command |
| :------- | :---------------------------------------------- |
|
`gplfs`
|
`git lfs push origin "$(current_branch)" --all`
|
plugins/git-lfs/git-lfs.plugin.zsh
0 → 100644
View file @
8ad9b315
#
# Aliases
#
alias
glfsi
=
'git lfs install'
alias
glfst
=
'git lfs track'
alias
glfsls
=
'git lfs ls-files'
alias
glfsmi
=
'git lfs migrate import --include='
#
# Functions
#
function
gplfs
()
{
local
b
=
"
$(
git_current_branch
)
"
git lfs push origin
"
$b
"
--all
}
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