I have a project which have to many redundant code that have to be removed.
What Git operations I have to make, so it still be easy to look removed source and also to be easy to return it in project if I need to?
Do I have to make any branches? Tags? Or just delete files from my master branch?
My project is hosted in GitHub if this information is helpful 🙂
Just delete it from master branch, you can always look back in history.
— edit —
Returning it back might be trickier though. What you can do then is branch current code off, push the branch to github and remove from master then. In that case it should be easier to cherry-pick the code you removed later on.
Do note, however, git is not a file-based tracker, so easiness of code recovery will solely depend on how well you used the concept of atomic commits.