I got my git aliases in my .bash_aliases
file. Since yesterday, when I want to add alias like alias gpuo='git push --set-upstream origin'
. First, he doesn't find it and secondly, he open ups this file every time I open up a new terminal window. Also, I get prompted with 2 files to edit. But there is only one bash alias file. I checked it with the find command.
The contents of .bash_aliases
are:
alias g='git'
alias gst='git status'
alias ga='git add'
alias gb='git branch'
alias gc='git checkout'
alias gcb='git checkout -b'
alias gpo='git push origin'
alias gf='git fetch'
alias gcm='git commit -m'
alias gp='git pull'
alias grom='git rebase origin/master'
alias gstash='git stash'
alias gstasha='git stash apply'
alias upgrade='sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get autoremove'
alias cl='clear'
alias alias='vim ~/.bash_aliases'