0

While pushing a large file to the github, accidentally all main files that i uploaded got removed from github repo and from my local machine too.

I am trying reverting but not working. Please, help if anyone can.

I used these commands

git rm -r --cached . 
git fetch origin master 
git pull origin master --allow-unrelated-histories 
git add filename 
git commit -m 'new_weights' 
git push origin master -f
Kaushal Kumar
  • 1,237
  • 1
  • 12
  • 21
Roopak
  • 31
  • 7

0 Answers0