Skip to content

Instantly share code, notes, and snippets.

Avatar

Md. Abdul Mutalib mamutalib

View GitHub Profile
@mamutalib
mamutalib / script.md
Last active October 7, 2022 18:10
Download All Repositories from GitHub
View script.md

curl -s https://api.github.com/users/YourUserName/repos | grep \"clone_url\" | awk '{print $2}' | sed -e 's/"//g' -e 's/,//g' | xargs -n1 git clone

Follow these to complete the task

  • open git bash
  • paste the above script
  • change YourUserName to Your GitHub user name
View Remove .gitignore cache
# remove all files from git cache
Just pase these command and fix the problem (.gitignore not working).
git rm -r --cached .
git add .
git commit -m "untracked fixed"