Skip to content

Instantly share code, notes, and snippets.

View raymunddelfin-zeald's full-sized avatar

Raymund C. Delfin raymunddelfin-zeald

View GitHub Profile
@raymunddelfin-zeald
raymunddelfin-zeald / delete_git_submodule.md
Created October 15, 2018 23:14 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
{
"color_scheme": "Packages/Color Scheme - Default/Mariana.sublime-color-scheme",
"default_line_ending": "unix",
"font_size": 10,
"ignored_packages":
[
"GitTimeMetric",
"Google Spell Check",
"Vintage"
],
@raymunddelfin-zeald
raymunddelfin-zeald / docker-compose.yml
Last active March 21, 2018 00:28
Wordpress phpmyadmin mysql
version: '3'
services:
wordpress:
image: wordpress:latest
links:
- wordpress_db
hostname: localhost
ports:
- 8080:80
working_dir: /var/www/html
package Person;
use feature 'say';
sub new {
my $class = shift;
my $self = {
first_name => shift,
last_name => shift
};