I added my files to local respository, committed the add then removed the files. I wasn't logged into gitlab at the time. how can I revert it?
            Asked
            
        
        
            Active
            
        
            Viewed 85 times
        
    -4
            
            
        - 
                    Does this answer your question? [How do I revert a Git repository to a previous commit?](https://stackoverflow.com/questions/4114095/how-do-i-revert-a-git-repository-to-a-previous-commit) – Liam Aug 04 '20 at 09:35
- 
                    5Please read [ask] and show your research. – CodeCaster Aug 04 '20 at 09:36
1 Answers
0
            You can use the git reflog and checkout the last commit where your files exists and commit it again.
git reflog
    
git checkout HEAD@{...}
 
    
    
        kryptobi
        
- 51
- 5
