<commit_before>---
layout: post
published: false
title: Useful git aliases
---
After watching [this talk](https://www.youtube.com/watch?v=3IIaOj1Lhb0) at the 2017 Git Merge conference, I got inspired to start integrating more git aliases into my workflow. Here are a couple handy ones I've been using.

"gpa" alias to push to all git remotes:

{% gist 60fd789af0615a86dd454305ef24d8e8 %}

"gitignore $1" to generate a gitignore file from [gitignore.io](https://www.gitignore.io).

{% gist cdf7e116043de411ec35a98c4606782f %}


A collection of more handy aliases referenced in the aforementioned talk: [https://bitbucket.org/tpettersen/git-aliases/src/master/.gitaliases?fileviewer=file-view-default](https://bitbucket.org/tpettersen/git-aliases/src/master/.gitaliases?fileviewer=file-view-default)<commit_msg>Updated 2017-05-27-useful-git-aliases.md<commit_after>---
layout: post
published: true
title: Useful git aliases
---
After watching [this talk](https://www.youtube.com/watch?v=3IIaOj1Lhb0) at the 2017 Git Merge conference, I got inspired to start integrating more git aliases into my workflow. Here are a couple handy ones I've been using.

"gpa" alias to push to all git remotes:

{% gist 60fd789af0615a86dd454305ef24d8e8 %}

"gitignore $1" to generate a gitignore file from [gitignore.io](https://www.gitignore.io).

{% gist cdf7e116043de411ec35a98c4606782f %}


A collection of more handy aliases referenced in the aforementioned talk: [https://bitbucket.org/tpettersen/git-aliases/src/master/.gitaliases?fileviewer=file-view-default](https://bitbucket.org/tpettersen/git-aliases/src/master/.gitaliases?fileviewer=file-view-default)
{'fraction_non_alphanumeric': 0.11070559610705596, 'fraction_numerical': 0.06569343065693431, 'mean_word_length': 5.326923076923077, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '961277', 'n_tokens_mistral': 640, 'n_tokens_neox': 554, 'n_words': 146}