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...Mar 7, 2024 · 3 min readsksundram.site
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...Mar 6, 2024 · 1 min readsksundram.site
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...Jul 17, 2023 · 1 min readsksundram.site
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.jsJun 14, 2023 · 1 min readsksundram.site
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...Jun 11, 2023 · 1 min readsksundram.site