Skip to content

Instantly share code, notes, and snippets.

@hartfordfive
Created December 13, 2016 15:53
Show Gist options
  • Select an option

  • Save hartfordfive/8a156c10fd0c1a74e6be82d8c3fa99fa to your computer and use it in GitHub Desktop.

Select an option

Save hartfordfive/8a156c10fd0c1a74e6be82d8c3fa99fa to your computer and use it in GitHub Desktop.
Contributing to other Go projects
# Easy way to work in go projects to submit PRs to other projects from your fork
# Switch to the project directory in the Go path
$GOPATH/src/github.com/elastic/beats/metricbeat`
# If there isn't already an origin for your fork, then add it
git remote add hartfortdrive [email protected]:hartfordfive/beats.git
# Once changes are made and you're ready to push to the branch on your origin
git push --set-upstream hartfortdrive <branchname>`
# Finally, to update the official master branch of the project
git pull origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment