Skip to content

Instantly share code, notes, and snippets.

View akash02-das's full-sized avatar
🎯
Coding from home

Akash Das akash02-das

🎯
Coding from home
View GitHub Profile
@akash02-das
akash02-das / settings.json
Created September 28, 2023 19:39
My VS Code settings
{
// Editor
"editor.guides.bracketPairs": true,
"editor.fontSize": 16,
"editor.fontFamily": "Fira Code",
"editor.wordWrap": "on",
"editor.tabSize": 2,
"files.autoSave": "onFocusChange",
// Workbench settings
@akash02-das
akash02-das / rename-master-to-main-git-branch.md
Last active July 28, 2023 22:04
Renaming the Local/Remote master Branch to main

Renaming the Local/Remote master Branch to main

  • The first step is to rename the "master" branch in your local Git repositories:

    $ git branch -m master main
  • Let's quickly check if this has worked as expected:

@akash02-das
akash02-das / rename-git-branch.md
Last active July 28, 2023 22:05
Rename a Local and Remote Git Branch

Rename a Local and Remote Git Branch

Follow the steps below to rename a Local and Remote Git Branch:

  • Start by switching to the local branch which you want to rename:

    git checkout 
@akash02-das
akash02-das / git.md
Last active March 16, 2022 10:35
Git and Github

GIT INIT, CONFIGURE, STATUS AND CLONE

Git Initialize in working directory

git init

Clone any repository

Conventinal Commit Messages

See how a minor change to your commit message style can make a difference. Examples

Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs

Commit Formats

Default