Skip to content

Instantly share code, notes, and snippets.

@rajnish93
rajnish93 / setup_git_accounts.sh
Last active November 1, 2025 13:46
GitHub Multi-Account Setup
#!/bin/bash
#!/bin/bash
echo "Cleaning existing GitHub setup..."
# -------------------------------
# 1. Stop the ssh-agent
# -------------------------------
@rajnish93
rajnish93 / allinonemigration.md
Created July 25, 2024 16:44 — forked from giovanni-d/allinonemigration.md
All-in-One WP Migration - Restore From Server (without PRO version) - Restore

All-in-One WP Migration Restore From Server (without pro version)

If you don't want to pay for the PRO version of this plugin, and you want to use the "Restore from Server" functionally that was present in the version 6.77, follow the instructions below:

  1. Open the js file: wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/backups.min.js
  2. On line 1208, replace the code below:
$('.ai1wm-backup-restore').click(function (e) {
@rajnish93
rajnish93 / gist:7df67e68e1dae057ab1994fe6499dad4
Created December 27, 2022 06:47
Run Multiple github or bitbucket
[user]
name = ABC
email = abc@users.noreply.github.com
[includeIf "gitdir:~/tempWorkspace/"]
path = ~/tempWorkspace/.gitconfig
[includeIf "gitdir:~/workspace/"]
path = ~/workspace/.gitconfig
@rajnish93
rajnish93 / gist:0e371cf63fb87a8595034dea56351fed
Created September 18, 2022 03:36
Update user name and email of all commits
git rebase -i --root -x "git commit --amend --author='Your Name <yourname@users.noreply.github.com> --no-edit'"
git pull --allow-unrelated-histories
@rajnish93
rajnish93 / gist:293b06f4e425c80aabb9dc2476c4d450
Last active July 4, 2022 18:41
Setting up multiple git accounts (GitHub and BitBucket)
```
# Bitbucket
Host bb
HostName bitbucket.org
User git
IdentityFile ~/.ssh/id_rsa
# Github (default)
Host gh
@rajnish93
rajnish93 / cloudSettings
Last active September 18, 2021 08:42
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-09-18T08:28:09.674Z","extensionVersion":"v3.4.3"}