Category: Development

Joomla web design

Check if a module exists and then display

Use this code to check if a module exists and only then display

Read More

Installing PHP GD

PHP is not limited to creating just HTML output. It can also be used to create and manipulate image files in a variety of different image formats, including GIF, PNG, JPEG, WBMP, and XPM. Sometimes you will need this PHP plugin installed on your server.

Read More

Branch on ‘Origin/master’ has diverged from local branch

if you have revered a commit and want the remote branch to reflect your revert + latest commits use this bit of code git push -f origin master Note that this will reset your remote (origin) master to reflect changes in your local master. Use with caution!

Read More

What is your current GIT Remote ?

To identify your current GIT remote just use: git remote -v

Read More

How to transfer email accounts and messages between cPanel servers?

Go to etc/ sub folder Download your site domain file Re-upload the your site domain folder to your new server under etc/ Go to the mail/ sub folder Download your site domain file Re-upload the your site domain file to your new server under mail/ All messages and accounts should now appear…

Read More

GIT Problem / Error : ‘please enter a commit message to explain why this merge is necessary …’

To handle the following problem use the following steps. press “i” write your merge message press “esc” write “:wq” then press enter

Read More

Function Reference/get permalink

Use this to add a permalink to the post. <?php echo get_permalink(); ?>

Read More

Create a new remote URL origin

Use the following code to add a new remote URL origin for your repository.

Read More

Check git Version

To get the version of git you are running use:

Read More

Undo GIT Add

If you would like to un-stage a file that you have just added in git simply use this command.

Read More

GIT Ignore file with specific extension

If you want to ignore a file with a specific extension that is not essential to your project simply add it to the .gitignore file.

Read More

Git Reset HEAD

Use with caution, once used these commands you will not be able to come back from the reset.

Read More