How to fix Shallow update not allowed git github?

This issue comes with cloning a project with Shallow Clone and you want to push your codes. What is shallow clone? Shallow clone is just cloning a repository using --depth. If you use Shallow clone to your local machine, it will not allow you to push your codes to...

Most used git commands

Git Book, Git References, Git Documentation git clone Clone a public repo git clone https://github.com/username/repo-name.git local-machine-folder-name git init Initialize or reinitialize a git repo git init git add Add / save all the changes in a repo git add --all...

How to deploy React App to github pages | gh-pages

Make an empty repo on github (no file) Install your react app using this command npx create-react-app yourprojectname Go to your project cd yourprojectname Intall gh-pages npm install gh-pages Add a homepage to package.json...