DEV Community

Discussion on: What are your favorite bash aliases?

Collapse
alexanderalemayhu profile image
Alexander Alemayhu • Edited on

I use git-amn a lot to reword the last commit or append some hunks

alias git-amn='git ci -v --amend'

My favourite function which I use a few times a year to study codebases for fun and profit 😉

# Clone a whole github organization.
orgclone() {
  mkdir -p $1
  cd $1
  curl -s https://api.github.com/orgs/$1/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}'
  cd -
}
Collapse
roelofjanelsinga profile image
Roelof Jan Elsinga Author

I'm adding that amend alias to my list too, that's great! That method is really cool and takes care of so much manual work! Productivity 😅