Resetting a repository completely erases your code and all repository history. If you need this data, make a backup now before proceeding.
ADVANCED
Incorrect use of this page's content can cause damage to your environment.
When you reset your repository, you may also want to empty your databases. Before you reset the repository, you can accomplish this by using the following Drush command:
drush @site.env sql-dropUse the following steps to clear your current repository. This procedure requires that you're signed into the Acquia Could UI and can execute command line tools on your local server.
Note
After completing this procedure, you may receive Git warnings about an untracked file, which is the Acquia-generated files directory. You can add this directory to your .gitignore file.
git clone --mirror [repo_address]where [repo_address] is the URL of your code repository.
% mkdir reset
% cd reset
% git initdocroot, which contains an empty file.
% mkdir docroot
% touch docroot/README.txt% git add .
% git commit -m "Initial commit"git remote add origin [repo_address]where [repo_address] is the URL of your code repository.
git push --mirror --forceThe remote repository should now be cleared of its code.