Skip to content

Instantly share code, notes, and snippets.

View cjsteel's full-sized avatar

Christopher Steel cjsteel

  • Montreal
View GitHub Profile
#!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2015, ZHANG Weiyi <dochang@gmail.com>
#
# This module is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
@cjsteel
cjsteel / gitflow-breakdown.md
Created June 28, 2017 14:00 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
git commit --allow-empty -m "Initial commit"
git checkout -b develop master

Connect to the remote repository

@cjsteel
cjsteel / Staging&ProductionUsingGit.md
Last active April 10, 2024 16:23 — forked from mediabeastnz/Staging&ProductionUsingGit
Staging and Production Server using Git.

If you are running a large project such as a website or ansible server you will want to test new features before pushing them into production then something like the following setup may work for you.

For this example imagine your url is mysite.ca and you want a development/staging site on a subdomain which is dev.mysite.ca

Setup

For websites

Create the website's domain and subdomain