Skip to main content

Posts

How to combine the last two commits into a single one in Git

 How to combine the last two commits into a single one in Git If you want to squash the last two commits into one without changing the commit message, you can follow these steps: Steps to Squash the Last Two Commits Without Changing the Commit Message Start an Interactive Rebase: Use the git rebase -i command to start an interactive rebase for the last two commits:  git rebase -i HEAD~2 Edit the Rebase File: In the text editor that opens, you’ll see something like this: pick a1b2c3 First commit message pick d4e5f6 Second commit message Change the second pick to squash (or s) to indicate you want to squash it into the first commit: pick a1b2c3 First commit message squash d4e5f6 Second commit message Save and Close the Editor: After making the change, save and close the editor. Keep the Commit Message: When Git opens another editor for the commit message, it will show you both commit messages. You can simply delete the second commit message and leave the first one as is, or you can keep
Recent posts

How can I modify the last commit on my local repository and on the reomte one too for the pull request

 How can I modify the last commit on my local repository and on the reomte one too for the pull request To modify the last commit in your local repository and update the pull request on the remote repository, follow these steps: 1. Modify the Last Commit Locally Make the necessary changes to your code and stage the changes: git add <modified-files> Now, instead of creating a new commit, amend the last commit: git commit --amend This will open your default editor, allowing you to change the commit message if necessary. If you don't want to change the message, just close the editor. This will include the new changes in the last commit. 2. Push the Updated Commit to the Remote Repository Since you've amended the commit, its hash has changed, so you need to force-push the updated commit to the remote repository: git push --force

shopinvader app for e-commerce business

 Shopinvader app for e-commerce business Steps: Install elasticsearch docker image Install Odoo 16 clone these repositories from OCA in GitHub: connector queue rest-framework sale-workflow search-engine server-env server-tools sale-channel web-api reporting-engine server-auth product-attribute delivery-carrier sale-promotion brand storage e-commerce clone these repositories from  shopinvader  in GitHub: shopinvader odoo-shopinvader-carrier odoo-shopinvader-payment add these directories in the odoo config. file create config index record for products with a value for Body Str: {"settings": {"analysis": {"char_filter": {"replace": {"type": "mapping", "mappings": ["&=> and "]}}, "filter": {"word_delimiter": {"type": "word_delimiter", "split_on_numerics": false, "split_on_case_change": true, "generate_word_parts": true, "generate_

compress a folder and decompress it in linux terminal using tar command

Compress a folder and decompress it in linux terminal using tar command  Run "tar -czvf (archive name).tar.gz (pathtofile)” in the Terminal to compress a file or folder.  tar -czvf (archive name).tar.gz (pathtofile) To extract an archive to the current folder, run the command “tar -xzvf (archive file)". tar -xzvf (archive file)

open new port with IP Tables in Oracle Cloud

 open new port with IP Tables in Oracle Cloud To list all IP Tables rules: iptables -L To save a backup of the origintal IP Tables rules: iptables-save > iptables_backup.txt To allow port 80 in IP Tables: iptables -A INPUT -p tcp --dport 80 -j ACCEPT To save the changes and make them permanent: iptables-save