Category: Uncategorized

0

git delete all branches that are merged into current branch

git branch –merged | grep -v “*” | grep -v master | grep -v develop | xargs -n 1 git branch -d References https://gist.github.com/mizanRahman/3a7887a2eaac789677579959b1dc9f5c http://stackoverflow.com/questions/6127328/how-can-i-delete-all-git-branches-which-have-been-merged

0

Squash multiple commits into one

Premature commits happen all the time. And often you want to squash all those premature commit into one meaningful commit ┬áto keep your commit history clean, easily┬áreadable and more meaningful. It’s quite easy to...

0

Git amend previous commit

Rewriting commit history with git Premature commits happen by accident more often than not. Sometimes you just missed adding a file or maybe you realized that you should have added a much more descriptive...