Skip to content

Instantly share code, notes, and snippets.

@thegreatchrispy
thegreatchrispy / readme.md
Last active May 16, 2019 06:21 — forked from benstr/readme.md
Gist Markdown Cheatsheet

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Paragraph

@thegreatchrispy
thegreatchrispy / git-shared-repo-workflow.txt
Last active July 19, 2018 17:18 — forked from mvitocruz/git-workflow.txt
Proposed workflow for a shared repository model, intended to skip pull requests. Allows all users to update master branch freely.
Assuming new features are supposed to be pushed to origin/master.
Aims:
* keep history simple (linear if possible, but make it easy to see
multi-commit features)
* avoid pull requests, allow any user to merge with master at any time
* try to minimize branch shuffling during the process
1) Make sure you are up to date:
git fetch
@thegreatchrispy
thegreatchrispy / git.migrate
Created April 30, 2018 15:59 — forked from niksumeiko/git.migrate
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.