Skip to content

Instantly share code, notes, and snippets.


Rohit Choudhary echorohit

Block or report user

Report or block echorohit

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View .bashrc
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
rohitchoudhary@~$ cat ~/.bashrc
export NVM_DIR="/Users/rohitchoudhary/.nvm"
[ -s "$NVM_DIR/" ] && \. "$NVM_DIR/" # This loads nvm
source /usr/local/etc/bash_completion.d/git-completion.bash
source /usr/local/etc/bash_completion.d/
echorohit / .bash_profile
Last active May 25, 2018
View .bash_profile
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
View Git Commands
Common git commands
git init : to initialize a empty project.
git clone <git url> <path to store> : Get some others project. But this will only give master branch.
git checkout -b <branchname> origin/<other branch name> : This will fetch the branch from remote you want but this command could only be run after 2nd command.
You can’t perform that action at this time.