How to add an empty directory to a git repository

1. Create .gitignore file inside an empty folder.

2. Insert the following code inside .gitignore file.

# Ignore everything in this directory
# Except this file

Optional: If you’re using Netbeans and by default all system core files are being ignored to prevent uploading to repo for security purposes. To include them in the repo you need to Unignore manually. How to? Solutions: Assuming you have followed the instructions above.

1. Right click the folder you want to include in repo

2. Go to >> Git >> “Unignore”

3. Finish. Now you can have them a copy in repo.

Modify WordPress Footer Using Child Themes

Assuming you have created a child theme inside your main wordpress templates. If not, Here’s How to create a child theme.

1. Copy footer.php from your main templates to your child-theme folder.

2. Edit footer.php and find the following code:

<?php do_action( 'twentythirteen_credits' ); ?>
 <a href="<?php echo esc_url( __( '', 'twentythirteen' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentythirteen' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentythirteen' ), 'WordPress' ); ?></a>

3. Modify the code to:

<?php do_action( 'twentythirteen_credits' ); ?>
<a href="YOURSITE.COM" target="_blank" title="TITLE OF THE LINK"><?php printf( __( 'YOUR COPYRIGHT TEXT', 'twentythirteen' ), '' ); ?></a>

4. Save & Refresh your website. (If not showing clear your browser cache first)

How to Open Applications With Root Privileges on a Mac

Editing a protected configuration file is restricted by default so it is necessary to open applications with root privileges. In order to do that, we need to open “Terminal” and open applications using sudo command.

1. Open Terminal.

Shortcuts to open Terminal using:

Command + Space Bar then type "Terminal"
Command + Shift + U and Open "Terminal"

2. Open Finder

-Click Applications on the left.

3. Find the Applications you want to access with root privilege.

-Right click on the Applications and click "Show Package Contents"
-Open Contents >> MacOS >> Here you can find the original Unix executable files for your applications.

4. Now go back to Terminal.

- Type "sudo"
- Now drag the applications in the Terminal.

It should look something like this:

7. Press Enter.

– Provide the administrator password if necessary.

8. You’re Done!