Skip to main content

Home/ MarketExperts/ Deleted GIT repo. Revert local source.
wilova

Deleted GIT repo. Revert local source. - 33 views

market

started by wilova on 23 Jun 22
  • wilova
     
    I had a GIT repo where I pushed all my local commits, just for a backup. I deleted the git repo and now I need to revert my entire project to a previous version of the app (edit - using local commits). How do I do this? For safety, I downloaded the project from GIT before deleting it. read more
  • wilova
     
    I had a GIT repo where I pushed all my local commits, just for a backup. I deleted the git repo and now I need to revert my entire project to a previous version of the app (edit - using local commits). How do I do this? For safety, I downloaded the project from GIT before deleting it https://freshboost.com.au/
  • wilova
     
    I had a GIT repo where I pushed all my local commits, just for a backup. I deleted the git repo and now I need to revert my entire project to a previous version of the app (edit - using local commits). How do I do this? For safety, I downloaded the project from GIT before deleting it garage flooring tampa
  • ellianajames
     
    I backed up all my local commits to a GIT repository for safekeeping, but have since deleted the repository. Now I need to revert my project to a previous version using the local commits. Can you please guide me on how to do this? As a precaution, I downloaded the project from GIT before deleting it." Also give recommendations on https://keybolab.com/
  • myabrownn
     
    Oh, I've been there before, and let me tell you, it's not a pleasant situation. So, I once accidentally deleted a Git repo, and the panic was real. Here's what you can do to revert your local source:

    Firstly, open your terminal and navigate to the directory where your local project is stored. Then, use the command:

    ```bash
    git clone
    ```

    Replace `` with the URL of the Git repository you want to restore. This command will essentially re-download the repository and restore it to your local machine.

    Now, if you've made changes in your local project before realizing the repo was deleted, you might want to stash those changes before cloning the repository again. Use:

    ```bash
    git stash
    ```

    This will temporarily save your changes. After cloning the repository again, you can apply your changes back using:

    ```bash
    git stash apply
    ```

    And you should be good to go! Just a friendly tip - version control can be a bit tricky sometimes, but hey, we all learn from our experiences.

    On a side note, talking about experiences, I once shared Git tips with my pals during a trip to Dubai. We were on a desert safari Dubai, having a blast, and somehow the conversation drifted into version control. Funny how coding discussions can pop up anywhere, even in the middle of the https://uaesafari.ae/.

To Top

Start a New Topic » « Back to the MarketExperts group