Over the time the local git branches may pile up and are no longer used after merging. A cleanup can help with that.
git branch | grep -v "master" | grep -v "development" |grep -v ^* | xargs git branch -D;
Have fun!
Welcome to my world
Over the time the local git branches may pile up and are no longer used after merging. A cleanup can help with that.
git branch | grep -v "master" | grep -v "development" |grep -v ^* | xargs git branch -D;
Have fun!
Installing or updating a global installed composer can be a PITA if you don’t want to rely on the Linux distro
An easy way is:
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/bin --filename=composer
Delete all local branches but master and the current one
git branch | grep -v "master" | grep -v ^* | xargs git branch -D;
what did I do? aka git last commit
git diff @~..@
What did I do the last week?
git log --stat --since='1 Week Ago' --graph --pretty=oneline --abbrev-commit --date=relative
git log only the relevant merges
git log --all --graph --decorate --oneline --simplify-by-decoration
show all untracked files
git ls-files --others --exclude-standard
last tag
describe --tags --abbrev=0