Make sure all changes are commited including the .gitignore
To clear the repo, use: git rm -r --cached .
rm
is the remove command-r
will allow recursive removal
If you have a slow import, or if you're running into a lot of server timeouts, then you can follow these steps to optimize your import.
Follow all of the steps listed here: http://www.wpallimport.com/documentation/troubleshooting/slow-imports/.
function disable_elementor_dashboard_overview_widget() { | |
remove_meta_box( 'e-dashboard-overview', 'dashboard', 'normal'); | |
} | |
add_action('wp_dashboard_setup', 'disable_elementor_dashboard_overview_widget', 40); |
The rules below are mainly there for a few reasons:
{"lastUpload":"2020-09-03T01:08:39.942Z","extensionVersion":"v3.4.3"} |
<h2>Categories</h2> | |
<ul> | |
{% assign categories_list = site.categories %} | |
{% if categories_list.first[0] == null %} | |
{% for category in categories_list %} | |
<li><a href="#{{ category }}">{{ category | capitalize }} ({{ site.tags[category].size }})</a></li> | |
{% endfor %} | |
{% else %} | |
{% for category in categories_list %} | |
<li><a href="#{{ tag[0] }}">{{ category[0] | capitalize }} ({{ category[1].size }})</a></li> |
# set the base image to Debian | |
# https://hub.docker.com/_/debian/ | |
FROM debian:latest | |
# replace shell with bash so we can source files | |
RUN rm /bin/sh && ln -s /bin/bash /bin/sh | |
# update the repository sources list | |
# and install dependencies | |
RUN apt-get update \ |
function resize --description "Resize images from @2x to @1x in current directory." | |
for image in * | |
echo $image | grep -qE '.*@2x.*'; and \ | |
convert $image -resize 50% (echo $image | sed "s/@2x/@1x/g") | |
end | |
end |
Example: You have a branch refactor
that is quite different from master
. You can't merge all of the
commits, or even every hunk in any single commit or master will break, but you have made a lot of
improvements there that you would like to bring over to master.
Note: This will not preserve the original change authors. Only use if necessary, or if you don't mind losing that information, or if you are only merging your own work.
On master:
> git co -b temp
<?php | |
// Function creates post duplicate as a draft and redirects then to the edit post screen | |
function rdm_duplicate_post_as_draft(){ | |
global $wpdb; | |
if (! ( isset( $_GET['post']) || isset( $_POST['post']) || ( isset($_REQUEST['action']) && 'rdm_duplicate_post_as_draft' == $_REQUEST['action'] ) ) ) { | |
wp_die('No post to duplicate has been supplied!'); | |
} | |
// get the original post id |