此链接上的博客文章提供了以下说明,用于为 Go lang 项目做出贡献,同时考虑到项目中导入路径出现的复杂性go get。我mybranch根据以下说明创建了一个,但是当我执行go build并运行该程序时,它正在运行 master 分支,而不是mybranch. 如何构建和运行特定分支?当我执行go build并运行程序时,它正在master分支上运行代码。
1.Fork the project
2.get the original one go get github.com/creack/termios
3.cd $GOPATH/src/github.com/creack/termios
4.Add the new remote: git remote add gcharmes git@github.com:gcharmes/termios.git
5.Fetch everything from github git fetch --all
6.Checkout in a new branch git checkout -b mybranch
7.7Contribute, as we are on the original checkout, all the paths are correct
8.Commit and push git commit -p && git push gcharmes mybranch
9.Go to github and create the pull request.
子衿沉夜
相关分类