3 ms·
`stg publish` was cumbersome to use and I wrote simple bash script: cat ~/bin/stg-update #!/bin/bash set -e current=$(stg top) git push -f
by bvrmn 5y ago
`stg publish` was cumbersome to use and I wrote simple bash script:
cat ~/bin/stg-update
#!/bin/bash
set -e
current=$(stg top)
git push -f origin HEAD:$current
It pushes changes into remote branch with same name as a current patch.
- tyhoff 5y agoThese two commands ultimately do different things. `stg publish` was in the business of not force pushing and only committing the 'delta' between what lived on a branch and the currently applied patches, so that you can `git push [no -f]` to a branch. Definitely cumbersome to use, but it had fair reasons to be cumbersome.