Last active
September 2, 2019 12:34
-
-
Save anvk/83a17a1b4abc2f07b23a to your computer and use it in GitHub Desktop.
Tiny change quick rebase in GIT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First set your git config to push only current branch | |
# This will change default behaviour of your GIT push command | |
# instead of pushing all changed branches from your local repo to the remote | |
# it will push ONLY your CURRENT branch you are on to the remote | |
git config --global push.default simple | |
# Add this alias to your ~/.bash_profile (OSX, Linux) or ~/.bashrc (Windows + Git Bash) | |
vim ~/.bash_profile | |
# If you have not setup your branch to track remote one. CUR_BRANCH is the name of the branch you are working with | |
git branch --set-upstream CUR_BRANCH origin/CUR_BRANCH | |
export NODE_PATH=/usr/lib/node_modules | |
export NODE_PATH=$NODE_PATH:/usr/local/lib/node_modules | |
export PATH=/usr/lib/node/bin:$PATH | |
export GOPATH=/Users/anvk/Documents/github/gocode | |
export ANDROID_HOME=/Users/anvk/Library/Android/sdk | |
export PATH=${PATH}:${ANDROID_HOME}/tools | |
source ~/.git-prompt.sh | |
PS1='\W$(__git_ps1)\$ ' | |
alias gti='git' | |
alias mymongo='mongod --dbpath /Users/anvk/Documents/mongo.data/db/' | |
alias mypsql='postgres -D /usr/local/var/postgres' | |
alias mychange='git add . && git commit -m "change" && git rebase -i HEAD~2 && git push -f --set-upstream origin' | |
alias mykillemmulator='/Users/anvk/Library/Android/sdk/platform-tools/adb -s emulator-5554 emu kill' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment