Code Monkey home page Code Monkey logo

Comments (2)

kyleabeauchamp avatar kyleabeauchamp commented on August 20, 2024

This workflow is great for things that are intended to be merged with
main. However, I think we have a lot of useful sandbox code that is not
intended to ever be mainlined, but is still useful and worth sharing.

On 09/02/2012 07:13 PM, Robert McGibbon wrote:

I'm just figuring out how to use git branches, and I think they might
be preferable in many cases to the sandbox system.

For example, here's a workflow that would work for Christian's work on
modifying Trajectory.py to load more flexibly.

|# create a new branch and check it out ;)
git checkout -b new-trajectory

[... make changes to files ... ]

git commit "awesome new features"

commit the new branch to github

git push origin new-trajectory
|

Instead of needing to create files like |Trajectory_crs.py| with new
names, you just edit the files in place and git does the work.

Switching between branches is really easy and takes no time at all.
Say you want to compare how your new code is working against the old
code, you do:

|git checkout new-trajectory
python setup.py install
[... test ...]

git checkout master
python setup.py install
[... test ...]
|

And then if you want to merge your changes into the "master" branch,
you can click the pull-request thing on github and then you get this
really nice GUI of where the code has changed, and people can comment,
etc.


Reply to this email directly or view it on GitHub
#15.

from msmbuilder-legacy.

rmcgibbo avatar rmcgibbo commented on August 20, 2024

Yeah, this is for working on new features.

I guess its an alternative to (1) just committing to the master branch and (2) doing it in the sandbox.

from msmbuilder-legacy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.