5

I would like to create a shortcut for rebasing x number of commits:- git rebase -i HEAD~3. I have a function function gri() { git rebase --interactive HEAD~"$1"; } and have tried adding it to my .zshrc file, .bashrc & .bash_profile. But where ever I add it when I try and run gri(2) for example, I get the error zsh: command not found: gri(2)

SOLVED

Just needed to remove function, gri() { git rebase --interactive HEAD~"$1"; } works a treat :D

supasuma
  • 61
  • 1
  • 6

0 Answers0