I Have a problem with git
My problem is the following, when I make a pull:
git pull origin example
Until there Perfect!!, Then I make a
rm -Rf rootdirectory
Then
git commit -am "Delete files"
and Then again I make a pull because I need this files
git pull origin example
but it isn’t get again the rootdirectory
This is a message:
Already up-to-date.
How I can do for get the files with git pull again?
The reason git pull does not change anything is that you are not pulling data from the remote repository, you are pulling changes. And there are no changes for git to pull!
Git is not a data store. It’s a version control system
However, if you want to checkout the previous state you can easily do that:
This means you are resetting your working copy to the previous state before the latest commit.
If however, you would like to completely remove the commit that deleted the files, you can do that as well: