Skip to content

Instantly share code, notes, and snippets.

@makevoid
Last active August 29, 2015 14:27
Show Gist options
  • Select an option

  • Save makevoid/9685aba294cf2cbedf45 to your computer and use it in GitHub Desktop.

Select an option

Save makevoid/9685aba294cf2cbedf45 to your computer and use it in GitHub Desktop.
repo_create.sh.alias - Aliases **repo_create** combo (gcom, gaa and especially gpc are my favourite git aliases"
# prepreq: gem i hub - or - brew install hub
# alias gcom="git commit -m"
# alias gaa="git add ."
# function gpc {
# cur_branch=$(git rev-parse --abbrev-ref HEAD)
# git push origin $cur_branch
# }
alias repo_create="git init . ; hub create ; touch Readme.md; gaa; gcom 'repo init'; gpc;"
@makevoid

Copy link
Copy Markdown
Author

aliases with syntax coloring and spacing

alias gcom="git commit -m"
alias gaa="git add ."

function gpc {
  cur_branch=$(git rev-parse --abbrev-ref HEAD)
  git push origin $cur_branch
}

other very useful aliases (edit and reload):

export editor="vim" # subl, mate, atom, redcar ...
alias realias="source ~/.bash_aliases"
alias ealias="$editor ~/.bash_aliases"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment