March 29, 2025

ikayaniaamirshahzad@gmail.com

git pushes everything even when i added just one file



afterlife@DESKTOP-00IMHG9:~/code/machine_learning$ git add fake_news_predictor.py

afterlife@DESKTOP-00IMHG9:~/code/machine_learning$ git commit -m "added"

[main ed8019e] added

4 files changed, 195 deletions(-)

delete mode 100644 .gitignore

delete mode 100644 diabetes_prediction.py

delete mode 100644 loan_prediction.py

delete mode 100644 sonar_prediction.py

afterlife@DESKTOP-00IMHG9:~/code/machine_learning$ git push origin main

Username for 'https://github.com': asatyarajgupta

Password for 'https://asatyarajgupta@github.com':

Enumerating objects: 14221, done.

Counting objects: 100% (14221/14221), done.

Delta compression using up to 16 threads

Compressing objects: 100% (12863/12863), done.

^Citing objects: 0% (25/14221), 79.30 MiB | 3.29 MiB/s

afterlife@DESKTOP-00IMHG9:~/code/machine_learning$

I removed to cache using git rm -r –cached . and then added only file and commited it it shoes right there
but then when pushine it just pushes the entire folder why?

submitted by /u/_Kateki
[comments]



Source link

Leave a Comment