Added a comment: Git Alias for a 'full sync'
This commit is contained in:
parent
4581f11243
commit
ee23c540ea
1 changed files with 17 additions and 0 deletions
|
@ -0,0 +1,17 @@
|
|||
[[!comment format=mdwn
|
||||
username="nobodyinperson"
|
||||
avatar="http://cdn.libravatar.org/avatar/736a41cd4988ede057bae805d000f4f5"
|
||||
subject="Git Alias for a 'full sync'"
|
||||
date="2023-05-15T07:31:41Z"
|
||||
content="""
|
||||
This alias pretty much does what I mean:
|
||||
|
||||
[[!format perl \"\"\"
|
||||
# set the alias
|
||||
git config --global alias.sync '!sh -xc '\"'\"'cd \"$(git rev-parse --show-toplevel)\";git annex add;git add -A;git annex sync'\"'\"''
|
||||
# This then goes into the repo root, adds stuff with git annex, adds the rest git-annex didn't add and syncs with git annex
|
||||
git sync
|
||||
\"\"\"]]
|
||||
|
||||
|
||||
"""]]
|
Loading…
Reference in a new issue