Shailesh Kumar Sundram
Shailesh Kumar Sundram

Shailesh Kumar Sundram

Follow
homeVim TipsmacOSJavaScriptGitJavaScript Interview Questionsbadges
Series

Git


Articles in this series

Remove Files From Staging Before Committing

Jun 14, 20231 min read

Say 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...

Remove Files From Staging Before Committing

Add More Files and Changes to a Commit Before Pushing

Jun 11, 20231 min read

After 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...

Add More Files and Changes to a Commit Before Pushing

Change a Commit Message That Hasn't Been Pushed Yet

Jun 11, 20231 min read

Use the --amend flag git commit -m 'removing sponsor from READMe' To rectify the above commit message, type git commit --amend -m 'removing sponsor...

Change a Commit Message That Hasn't Been Pushed Yet

How to Setup Git and GitHub on macOS in 5 Minutes

Dec 11, 20222 min read

Install Git $ brew install git Set up global configs You have to do this only once. $ git config --global user.name "Steve Smith" # Name $ git...

How to Setup Git and GitHub on macOS in 5 Minutes