Skip to content

Instantly share code, notes, and snippets.

View carrieforde's full-sized avatar

Carrie Forde carrieforde

View GitHub Profile
## List all remote branches ##
git branch -r
## Checkout a remote branch ##
git branch <local branch name> <remote branch name>
## Push up a local branch to remote with a different name ##
git push origin <local branch name>:<remote branch name> # separate local and remote with a :
@carrieforde
carrieforde / New site plugins
Last active January 24, 2017 00:39
WP-CLI new site plugin install command
wp plugin install akismet black-studio-tinymce-widget broken-link-checker developer google-analytics-for-wordpress wordpress-seo jetpack debug-bar monster-widget log-deprecated-notices simply-show-ids theme-check --activate
<div class="carrieforde-project-images">
<?php
if ( $project_images ) {
for ( $i = 0; $i < $project_images; $i++ ){
$project_image = get_post_meta( get_the_id(), 'project_images_' . $i . '_project_image', true );
$img = get_post( $project_image );
$caption = $img->post_excerpt;
$imgcaption = $caption;
if ( ! empty( $caption ) ) {
@carrieforde
carrieforde / brackets-extensions.md
Last active May 10, 2017 19:10
A list of Brackets Extensions I Love
@carrieforde
carrieforde / sni_mm-button.css
Last active December 7, 2015 23:12
Generated by SassMeister.com.
a.mm-button {
background-color: #fff;
color: #fff !important;
}
a.mm-button:hover {
background-color: #cccccc;
}
a.mm-button.solid-to-ghost {