adrienrn / dotfiles

:black_circle: - Yet another dotfiles repository
Apache License 2.0
1 stars 1 forks source link

Git #1

Open adrienrn opened 8 years ago

adrienrn commented 8 years ago

Remove a tag locally and remotely

Because sometimes, you're making a big giant poop.

git tag -d 1.50.1 && git push origin :refs/tags/1.50.1

adrienrn commented 8 years ago

Pull --rebase

Pulling avoiding merge commit.

git stash && git pull --origin develop && git stash pop

adrienrn commented 8 years ago

Number of lines in a github

alias gitlines="git ls-files | xargs wc -l"
adrienrn commented 7 years ago

Cleanup

Remove all branches that does not exists on remote:

git fetch origin --prune
adrienrn commented 7 years ago

Push after release:

git push origin develop && git push origin master && git push origin --tags
adrienrn commented 7 years ago

Count useless object (how dirty your working copy is):

git count-objects

http://stackoverflow.com/questions/55729/how-often-should-you-use-git-gc

adrienrn commented 7 years ago
git log --all --graph --decorate --oneline --simplify-by-decoration

https://hashnode.com/post/what-protocolsmethodscode-snippets-do-youyour-company-have-in-place-that-saves-you-time-ciw4pm8ra000h7i531jwhlziq

adrienrn commented 7 years ago

https://github.com/nibalizer/bash-tricks/blob/master/bash_tricks.sh

adrienrn commented 7 years ago

Ménage complet d'une copie locale.

http://stackoverflow.com/questions/7726949/remove-local-branches-no-longer-on-remote