kamilsk / dotfiles

🗂 My dotfiles for productive work.
MIT License
4 stars 0 forks source link

git: alias: please doesn't respect tracking state #648

Closed kamilsk closed 10 months ago

kamilsk commented 10 months ago

Details

  for remote in $(git remote | grep -Ev '^(upstream|fork-.*)$'); do
    git push --force-with-lease --tags "${remote}" "$(git current)"
  done

https://github.com/kamilsk/dotfiles/blob/dce0b935e6cb99473ae499e69394b99b45b837f1/bin/git_please#L12-L14

I use forks for https://github.com/octolab/.github and configure their branches to appropriate remotes, e.g.,

When I use git please it pushes to the origin upstream, not fork! It replaces history.