Horje
checkout master with previous commit Code Example
checkout master with previous commit
git checkout 307a5cd        # check out the commit that you want to reset to 
git checkout -b fixy        # create a branch named fixy to do the work
git merge -s ours master    # merge master's history without changing any files
git checkout master         # switch back to master
git merge fixy              # and merge in the fixed branch
git push                    # done, no need to force push!




Shell

Related
bash array Code Example bash array Code Example
git prune local branches Code Example git prune local branches Code Example
revert to commit git Code Example revert to commit git Code Example
To exclude directory with particluar pattern : Code Example To exclude directory with particluar pattern : Code Example
merge child branch to parent git Code Example merge child branch to parent git Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9