mirror of
https://codeberg.org/vlw/dotfiles.git
synced 2025-09-13 10:53:41 +02:00
Compare commits
2 commits
d1432cb07f
...
fba317b20c
Author | SHA1 | Date | |
---|---|---|---|
fba317b20c | |||
c931dd9cf7 |
1 changed files with 7 additions and 0 deletions
|
@ -93,6 +93,13 @@ gitf () {
|
|||
local remote="${2:-origin}"
|
||||
|
||||
git pull "$remote" $(git rev-parse --abbrev-ref HEAD)
|
||||
git submodule update --recursive
|
||||
;;
|
||||
|
||||
# Update all git submodules in this repo. "sd" for submodule download.
|
||||
"sd")
|
||||
# Only supports "master" as branch for now. This could cause unexpected results if a tracked submodule has a different branch or location name
|
||||
git submodule foreach "(git checkout master; git pull)"
|
||||
;;
|
||||
|
||||
# Push commited changes (current branch) to a remote (defaults to "origin"). "u" for upload.
|
||||
|
|
Loading…
Add table
Reference in a new issue