문제

I'm working with a large open-source project on GitHub, and will need to test lots of pull-requests by pulling down their code locally. I'd love to be able to hook into git somehow so that when I type git fetch someUser, if there is no origin named someUser, a new origin is added at git@github.com:someUser/repoName.git.

Is there such a way to intercept git's operations? Is there a script out there that does this? If not it's not the end of the world, and may prompt me to look into git's insides a bit more to see if I can make it happen.

도움이 되었습니까?

해결책

GitHub has a cli tool that augments git with some GitHub specific operations and functionality. One of them is precisely what you're looking for. Check out hub

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top