How to Use Multiple Neovim Distributions on macOSWhat if you want to install multiple Neovim distributions like NvChad, LunarVim, AstroNvim, LazyVim, etc. while also keeping your custom Neovim config on you system. There's two ways to do that. Method #1 This method is by Elijah Manor. Make sure you...3 min read·sksundram.siteMar 7, 2024
Why Git Asks for Username and Password While Pushing to Remote RepoThis could be because the remote url is pointing to HTTPS URL and not to SSH URL. Here's an example of - HTTPS URL : https://github.com/<Username>/<Project>.git SSH URL : git@github.com:<Username>/<Project>.git Now, to change from HTTPS URL to SS...1 min read·sksundram.siteMar 6, 2024
How to Utilise the Reduce Method on an Array of Objects?const fruits = [ { name: 'Apple', quantity: 20 }, { name: 'Banana', quantity: 35 }, { name: 'Orange', quantity: 50 }, { name: 'Grapes', quantity: 15 } ]; const totalQuantity = fruits.reduce((accumulator, fruit) => { return accumulator + fr...1 min read·sksundram.siteJul 17, 2023
Remove Files From Staging Before CommittingSay you have added main.js to the staging area but later you realised that you don't want to commit it. You have two ways to achieve it. The old way git reset HEAD main.js The new way git restore --staged main.js1 min read·sksundram.siteJun 14, 2023
Add More Files and Changes to a Commit Before PushingAfter creating new files and editing existing files, we want to add them to the previous commit i.e. rewrote the previous commit. First, add all the files to the staging area. git commit -A Now, commit them using the --amend flag. git commit --amend...1 min read·sksundram.siteJun 11, 2023