package
0.0.0-20240829015542-9b138c2af3e2
Repository: https://github.com/vbatts/utils.git
Documentation: pkg.go.dev
# README
see-pr
I personally like fetching the pull-request's of a project.
Makes it easier tig pr/1234
, build it, etc.
This tool simply adds the github PR refspec to a local git repo.
cd $YourClonedRepo
see-pr
git fetch
git checkout pr/1234
Install
go get github.com/vbatts/utils/cmd/see-pr
Usage
$ see-pr -h
Usage of see-pr:
-config string
path to the git config (default ".git/config")
-path string
local path of the git repo (default ".")
-remote string
upstream remote name (default "origin")
Then to let it update your .git/config
:
$ see-pr
INFO[0000] reading from ".git/config"
INFO[0000] origin/origin URL: [email protected]:vbatts/utils.git
INFO[0000] appending fetch = +refs/pull/*/head:refs/remotes/pr/*
INFO[0000] SUCCESS! `git fetch` and then you can `git checkout pr/$NUM` of your PRs
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author