Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
8ad9b315
Unverified
Commit
8ad9b315
authored
Oct 09, 2020
by
Duc Nguyen
Committed by
GitHub
Oct 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add git-lfs plugin (#9077)
parent
58ff4e1d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
0 deletions
+42
-0
CODEOWNERS
.github/CODEOWNERS
+1
-0
README.md
plugins/git-lfs/README.md
+24
-0
git-lfs.plugin.zsh
plugins/git-lfs/git-lfs.plugin.zsh
+17
-0
No files found.
.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