Delete remote branch:
git push origin :<branchName>
Add a remote branch:
git remote add <remoteName> <gitAddress>
| [alias] | |
| st = status | |
| co = checkout | |
| cm = commit | |
| pr = pull --rebase | |
| # Start over | |
| fuckit = reset --hard | |
| # Submodules | |
| subup = submodule update --init --recursive | |
| # Show verbose output about tags, branches or remotes |
| /** | |
| * Get posts and group by taxonomy terms. | |
| * @param string $posts Post type to get. | |
| * @param string $terms Taxonomy to group by. | |
| * @param integer $count How many post to show per taxonomy term. | |
| */ | |
| function list_posts_by_term( $posts, $terms, $count = -1 ) { | |
| $tax_terms = get_terms( $terms, 'orderby=name'); | |
| $args = array( |
| <!-- Responsive iFrame --> | |
| <div class="flexible-container"> | |
| <iframe>i</iframe> | |
| </div |
| /** | |
| * Smooth Scrolling Anchor Links | |
| * http://www.sycha.com/jquery-smooth-scrolling-internal-anchor-links | |
| */ | |
| $(".scroll").click(function(event){ | |
| event.preventDefault(); | |
| $('html,body').animate({scrollTop:$(this.hash).offset().top}, 500); | |
| }); |
| .middle { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| bottom: 0; | |
| right: 0; | |
| margin: auto; | |
| } |
| /** | |
| * Outputs recent posts with the desired markup and data. | |
| * Used in place of a widget to meet design requirements. | |
| * | |
| * Load in your theme template files with this <?php _my_recent_posts(); ?> | |
| */ | |
| function _my_recent_posts($recent_number = '8') { | |
| $args = array( 'numberposts' => $recent_number ); | |
| $recent_posts = wp_get_recent_posts( $args ); | |
| echo '<ul class="recent-entries">'; |
| /** | |
| * Remove modules that are not wanted/needed. | |
| * This example removes the carousel and hero modules. | |
| * You just need to pass the ID of desired module(s) to remove. | |
| */ | |
| function build_deregister_modules() { | |
| cfct_build_deregister_module('cfct_module_carousel'); | |
| cfct_build_deregister_module('cfct_module_hero'); | |
| } | |
| add_action('cfct-modules-included', 'build_deregister_modules'); |
| { | |
| "create_window_at_startup": false, | |
| "detect_indentation": false, | |
| "draw_white_space": "all", | |
| "font_size": 14.0, | |
| "font_options": | |
| [ | |
| "gray_antialias" | |
| ], | |
| "highlight_line": true, |