'Git only kept my java files and deleted the rest
It was my first time using git and I wanted to add a project to github, I used the following commands:
git init
git add .
git commit -m "Commit 1"
git remote add origin <my url>
git push origin master
As soon as I did this I noticed git deleted all my local files that were in that folder and the only files I got in my repository were java files, so all the rest was deleted.
Any way to revert back the damage?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
