I have a big project on bitbucket.org which is around 2GB. For some reason, git clone command breaks in between. So I decided to download the source files in a zip version provided by bitbucket.
Now what I want to do is that whatever changes I made to these files, I want to upload them to the Git repo over bitbucket.
Here is what I just tried:
I extracted all files from zip to a folder "myproject"
Then I run a below command git commands in this folder
git init
git add .
git commit -m "test commit"
so this step initialized a local git repository for me for those downloaded files.
- Then I run the below command to set up the remote repository
git add origin https://xyz@bitbucket.org/myproject/myproject.git
- Now I type below command to push the changes to remote repository
git push origin master
This all runs fine but the problem is in the last step, it uploads the whole project to remote repo in place of uploading just the files that were updated.
How do I fix this so that it can upload only the files that are changed?