[git] git push 그리고 바로 PR 하러가기

dev stefanCho·2021년 12월 23일
0

git

목록 보기
12/14

git push를 한 후에, 지라를 켜고 PR로 다시 찾아들어가는 과정이 귀찮았습니다.
github에 해당 repo에 들어가면 branch 변경내역이 있어 PR을 바로 할 수 있지만, push할때마다 크롬을 여는것도 번거로운 일입니다.

git push의 alias를 아래와 같이 지정합니다. (MacOS zsh 기준)

alias gp='git push && open -a "Google Chrome" https://github.com/your-repository/${PWD##*/}'

git push를 하면서 repo를 열고 방금 push한 branch를 바로 PR할 수 있습니다.

profile
Front-end Developer

0개의 댓글