Skip to content

Instantly share code, notes, and snippets.

@grvsachdeva
Last active July 21, 2019 10:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grvsachdeva/75b1d1bac94821d70f8b44e72d2c25a3 to your computer and use it in GitHub Desktop.
Save grvsachdeva/75b1d1bac94821d70f8b44e72d2c25a3 to your computer and use it in GitHub Desktop.
Open Source and Plots2 handy guide for help

Making a Migration (Plots2)

One have to run this migration locally and then update the schema.rb.example corresponding to updates in their local schema.rb file and then copy the checksum into the top of schema.rb.example.

Getting any branch from origin(Git repo on account)

git checkout --track origin/branch_name

Fetching Pull Request branch

git fetch repo pull/7324/head:pr-7324

where,

repo points to the remote repo, e.g. git://github.com/xxx/xxx.git.

pull/7324/head is the remote pull request.

pr-7324 is the local pull-request branch.

Then, one can use the local PR branch to do whatever you want with it.

Pushing to someone else's branch

That will almost work.

When pushing to a non-default branch, one need to specify the source ref and the target ref:

git push origin branch1:branch2 OR git push <remote> <branch with new changes>:<branch you are pushing to>

Pushing on unstable

  1. Push using: git push -f https://github.com/publiclab/plots2.git HEAD:unstable
  2. Build Progress at https://jenkins.laboratoriopublico.org/job/Plots-Unstable/
  3. Test website: https://unstable.publiclab.org/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment