导入软件包的本地更改而无需在Golang中推送代码

I' am learning Golang now-a-days and a total newbie. I have a question regarding packages.

Consider the following scenario:

Imagine I have a package github.com/ilatif/A in which I' am importing another package github.com/ilatif/B, like:

import "github.com/ilatif/B"

Now since both github.com/ilatif/A and github.com/ilatif/B are my packages and I' am working locally on them, is there a way to pull changes from github.com/ilatif/B package without pushing code to GitHub? As per Golang's documentation, I need to push the code to its relevant repo but I was wondering if there is such a way to pull local changes of my own package without pushing it to upstream first.

Thanks