Malik A. Rumi
Malik A. Rumi

Reputation: 2025

some local files missing on remote after git push

I did a git push from my local to bitbucket. This is a Django project. 3 files from my project level directory are still present on my local but missing from the remote on Bitbucket: manage.py, README.md, and runtime.txt.

Why did these three files not get pushed? How do I fix it? And going forward, how do I have confidence in the integrity of my pushes and pulls? If you know Django, you know manage.py is a pretty important file. .gitignore only has venv, staticfiles, and .pyc. And yes, I did do git status afterwards:

(cannon)malikarumi@Tetuoan2:~/Projects/cannon/jamf$ git status                     
On branch master                                                                   
Your branch is up-to-date with 'origin/master'.                                    
nothing to commit, working directory clean  

Upvotes: 1

Views: 4700

Answers (2)

RichArt
RichArt

Reputation: 1672

try git add --all and then commit and push again. It will push all changes you made in all files.

Basically:

git add --all

git commit -m "add all"

git push

Upvotes: 3

keshav vishwkarma
keshav vishwkarma

Reputation: 1852

May be your files do not in the version control so firstly you should add manage.py, README.md, and runtime.txt files in version control using the git add command and then commit & push again. and make sure these files are not ignore by .gitignore file.

Upvotes: 5

Related Questions