Skip to content

Instantly share code, notes, and snippets.

View sagar-pardhi's full-sized avatar

LoneDeveloper sagar-pardhi

  • India
  • 10:25 (UTC +05:30)
View GitHub Profile
@sagar-pardhi
sagar-pardhi / work-with-multiple-github-accounts.md
Created September 30, 2023 15:21 — forked from rahularity/work-with-multiple-github-accounts.md
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent
@sagar-pardhi
sagar-pardhi / .bash_profile
Last active September 18, 2024 15:46
Git Setup on Windows
# Enable tab completion
source ~/git-completion.bash
# colors!
green="\[\033[0;32m\]"
blue="\[\033[0;34m\]"
purple="\[\033[0;35m\]"
reset="\[\033[0m\]"
# Change command prompt
@sagar-pardhi
sagar-pardhi / snippets.code-snippets
Created January 26, 2023 07:11
ES7 React/Redux/GraphQL/React-Native snippets for CodeSandbox
{
"exportType": {
"body": ["export type ${1:first} = {${2:second}}"],
"key": "exportType",
"prefix": "exptp",
"scope": "typescript,typescriptreact,javascript,javascriptreact"
},
"exportInterface": {
"key": "exportInterface",
"prefix": "expint",
@sagar-pardhi
sagar-pardhi / docker_script.sh
Last active February 27, 2023 15:40
docker_script.sh
# remove old version of docker if installed
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \