Thursday, 24 April 2025

GIT convenient commands

Revert a specific directory to a commit 

 https://stackoverflow.com/questions/30844254/undo-changes-made-in-a-specific-folder-in-git

git checkout --no-overlay <commit> -- <directory>


Merge a specific commit

https://stackoverflow.com/questions/881092/how-to-merge-a-specific-commit-in-git


#to merge the commit need to go to that branch pull first

git cherry-pick d42c389f

No comments:

Post a Comment