Search code examples
gitbitbucketgit-push

Folder crashed when i push to bitbucket


I have problem pushing my local folder to git repository using Bitbucket. Using terminal i switch to the directory when my project folder is and i use the following commands:

  1. git init
  2. git add
  3. git commit -m "new commit"
  4. git remote add origin https://.....
  5. git push origin master

And after i succeed this and it tells me that the folder is added to my repository i get the folders like on the attached picture.

Can someone help why is it like this?

Thank you, Igor

enter image description here


Solution

  • I just add .gitignore file in the Project Folder and repeat the git commands and the folder was added to the repository with all files inside.