How to remove a directory from git repository?

Remove directory from git and local You could checkout ‘master’ with both directories; git rm -r one-of-the-directories // This deletes from filesystem git commit . -m “Remove duplicated directory” git push origin <your-git-branch> (typically ‘master’, but not always) Remove directory from git but NOT local As mentioned in the comments, what you usually want to … Read more

After $git push -u origin main command, Git bash is not requesting any authentication literally does nothing

Update Oct. 2021: issue 384 describes again the problem: During the host provider auto-detection when GCM makes a HTTP call to the remote, this can sometimes hang until a long timeout period has elapsed. This now has been fixed with PR 481 “Speed up host provider auto-detection and make more robust” (see commit 1f926e4) Update … Read more

New to GitHub, how to run the commands on Windows?

The specific command you ran only works on linux because: sudo is a linux command (or *nix command in general) apt-get is a linux command (specifically ubuntu/debian command) install is a argument to apt-get command npm is a package So the line: sudo apt-get install npm means: Hey package-manager(apt-get), install the package (npm) and do … Read more