Upgrade WSL/WSL2 Ubuntu version to 20.04 LTS

Its the time of the year again to upgrade Ubuntu version in WSL/WSL2 since the Ubuntu 20.04 LTS came out last week. Please follow along the following steps in your WSL console to upgrade to the new version: Check installed Ubuntu version Take a note of your current Ubuntu version by running the following command:

Continue Reading

Git: Sync fork with upstream changes

A forked repository can be synced with the upstream one as follows: Clone the forked repository locally if not already done. git clone https://github.com/OWNER/FORKED-REPOSITORY.git List the remote repository configured for your fork: git remote -v Add a new remote upstream repository that will be synced with the local fork: git remote add upstream https://github.

Continue Reading

Git: Submodule Init and Update

For a repository with submodules all the submodules can be pulled down locally for the first time using: git submodule update --init --recursive Subsequently, submodules can be updated with remote changes using: git submodule update --recursive --remote

Continue Reading

MySQL–Restoring large database on windows

Recently while trying to restore database from a large database backup file I encountered few issues with MySQL. So for reference I am posting the solution steps for resolving these issues on windows : Initiate the restoration process from command prompt as follows: mysql –u root –p > [sql file path] After this you will be prompted for root account’s password.

Continue Reading