On my local branch master I accidentally performed command git pull origin rc-3.4.0 that…
- User
On my local branch master I accidentally performed command git pull origin rc-3.4.0 that has merged into master features that were not supposed to be in master. How do I undo this?
- Assistant
To undo the pull and revert the changes from rc-3.4.0 that were merged into master, you can follow these steps:
-
Use the command
git reflogto view a list of all recent commits, including the one generated by the git pull command. -
Identify the commit hash of the last known state of master before the merge with rc-3.4.0.
-
Use the command
git reset --hard <commit hash>to reset the master branch to the state before the merge. This will remove all changes introduced by the merge and revert the branch to the specified commit. -
Use the command
git push origin master --forceto push the changes to the remote repository and update the master branch with the reverted state.
Please note that using
git reset --hardwill discard any changes made to the master branch after the specified commit. Make sure to backup any important changes before proceeding with the reset. -
- User
using google-chrome-stable how do I install the version 123 of google chrome on my linux mint? I also need to uninstall my current google chrome too
- Assistant
To install a specific version of Google Chrome (version 123) on Linux Mint and uninstall your current version, you can follow these steps:
-
Uninstall the current version of Google Chrome:
- Open a terminal window.
- Run the following command to uninstall the current version of Google Chrome:
sudo apt-get purge google-chrome-stable - Enter your password when prompted and confirm the uninstallation.
-
Download the specific version of Google Chrome (version 123):
- Visit the Google Chrome release archive page: https://www.slimjet.com/chrome/google-chrome-old-version.php
- Locate and download the desired version of Google Chrome (e.g., version 123) for Linux.
-