- Fork nipo project to your repository (https://github.com/NipoDB/nipo)
- Go to your $GOPATH via
cd $GOPATH
- If your not having bin,pkg,src folder creating using
mkdir -p {src,bin,pkg}
- Create nipo module original path
mkdir -p src/github.com/NipoDB
- Go to NipoDB path
cd src/github.com/NipoDB
- Clone Forked Project in current path
git clone https://github.com/your_username/nipo.git
- Go to nipo folder
cd nipo
- Change branch from main to dev via
git checkout dev
- Getting required packages via
go get ./...
- Add remote
git remote add upstream https://github.com/NipoDB/nipo.git
to update your fork repo. - Working on Project and send yours PR
-
To check and update your forked repo before any changes use
git fetch upstream
git merge upstream/dev
git merge upstream/main
- If any file changed via merge, push on your forked branch via
git push origin dev
orgit push origin main
-
Just work on dev branch.
-
After change in any file add/commit your changes.