If you want to push a different local git branch to your resin.io fleet all you need to do is:
git push resin my-local-branch:master

Configuration

Node Applications

Resin.io supports node.js natively using the package.json
file located in the root of the repository to determine how to build and execute
node applications.

When you push your code to your application's git endpoint the deploy server
generates a container for the environment your device operates in,
deploys your code to it and runs npm install to resolve npm
dependencies, reporting progress to your terminal as it goes.

If the build executes successfully the container is shipped over to your device
where the supervisor runs it in place of any previously running containers,
using npm start to execute your code (note that if no start script is
specified, it defaults to running node server.js.)

Node.js Example

A good example of this is the text-to-speech application -
here's its package.json file*:

These are shell commands that are run within the container on the build server
which are configured such that dependencies are resolved for the target
architecture not the build server's - this can be very useful for deploying
non-javascript code or fulfilling package dependencies that your node code
might require.

We use Raspbian as our contained operating system, so this scripts
uses aptitude to install native packages before moving a script for
our node code to use over to /usr/bin (the install scripts runs with root
privileges within the container.)

Note: With plain Node.js project, our build server will automatically detect the specified node version in package.json file and build the container based on Docker image with satisfied node version installed. The default node version is 0.10.22 and it will be used if a node version is not specified. There will be an error if the specified node version is not in our registry. You can either try another node version or contact us to be supported. More details about Docker node images in our registry can be found here.

Dockerfile Deployment

See the Dockerfile guide for custom application deployment using
Dockerfiles. This allows you to completely control the
Linux environment you deploy to your devices and write your application in
whatever programming language you prefer.

The Build Server

The build server is an incredibly powerful tool which cross-compiles code for
the target device on our (far more powerful) server. This gives you the ability
to compile a gnarly dependency tree in seconds on the server rather than minutes
or even hours to build on your device.

All code that is pushed to your resin.io devices is sent to the build server
which builds it, then ships the resultant environment to your devices.