Git: go back to a specific commit and discard all commits after it permanently

To permanently go back to a specific commit and discard all commits after it, you can use the following Git commands: 1) Reset to the specific commit: Replace <commit-hash> with the hash of the specific commit you want to reset to. This will move your branch pointer back to that commit and discard any changes … Read more

Git Cherry Pick Tutorial

#create a release branch from master git checkout -b release/1.0.5 master # get the logs for the source branch we want to cherry pick from git log develop –oneline # this is the merge commit for DATA-506 951c3f9 (HEAD -> develop, origin/develop, origin/HEAD) Merge pull request #128 from artnetworldwide/feature/DATA-506 # checkout the destination branch (release/1.0.5), … Read more