Skip to content

Instantly share code, notes, and snippets.

View AthulKkumar's full-sized avatar
:octocat:

Athul K Kumar AthulKkumar

:octocat:
View GitHub Profile
@AthulKkumar
AthulKkumar / git_submodule_fix.md
Created June 30, 2023 12:47 — forked from claraj/git_submodule_fix.md
Fixing git submodule AKA git repo inside another git repo

Problem, and symptoms:

You experience one or more of these symptoms

  • you have code in a directory but it's not being pushed to GitHub. You just see an empty directory icon
  • you see this message when you add code to your git repository from the command prompt
hint: You've added another git repository inside your current repository.
hint: Clones of the outer repository will not contain the contents of
hint: the embedded repository and will not know how to obtain it.
@AthulKkumar
AthulKkumar / .js
Created September 5, 2023 07:53
Socket.io generating two or more ids for an user.
// First I done is like :
---------------------------------------------------------------
/socket.js : (File)
import { io } from "socket.io-client";
export const initSocket = async () => {
const options = {
"force new connection": true,
https://stackoverflow.com/questions/34519665/how-can-i-move-head-back-to-a-previous-location-detached-head-undo-commits