Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git #1

Open
adrienrn opened this issue Mar 10, 2016 · 8 comments
Open

Git #1

adrienrn opened this issue Mar 10, 2016 · 8 comments

Comments

@adrienrn
Copy link
Owner

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
Copy link
Owner Author

Pull --rebase

Pulling avoiding merge commit.

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

@adrienrn
Copy link
Owner Author

Number of lines in a github

alias gitlines="git ls-files | xargs wc -l"

@adrienrn
Copy link
Owner Author

adrienrn commented Sep 19, 2016

Cleanup

Remove all branches that does not exists on remote:

git fetch origin --prune

@adrienrn
Copy link
Owner Author

Push after release:

git push origin develop && git push origin master && git push origin --tags

@adrienrn adrienrn changed the title Add some git aliases Git Oct 13, 2016
@adrienrn
Copy link
Owner Author

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
Copy link
Owner Author

adrienrn commented Dec 1, 2016

@adrienrn
Copy link
Owner Author

adrienrn commented Dec 1, 2016

@adrienrn
Copy link
Owner Author

adrienrn commented Feb 1, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant