Skip to content

Instantly share code, notes, and snippets.

View echorohit's full-sized avatar
🎯
Focusing

Rohit Choudhary echorohit

🎯
Focusing
  • SambaNova Systems
  • Bangalore
  • 03:29 (UTC -12:00)
  • X @29rkc
View GitHub Profile
Common git commands
-------------------
Start:
------
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.
@echorohit
echorohit / .bash_profile
Last active May 25, 2018 05:18
.bash_profile
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
@echorohit
echorohit / .bashrc
Last active May 25, 2018 05:18
.bashrc
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
rohitchoudhary@~$ cat ~/.bashrc
export NVM_DIR="/Users/rohitchoudhary/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
source /usr/local/etc/bash_completion.d/git-completion.bash
source /usr/local/etc/bash_completion.d/git-prompt.sh
GIT_PS1_SHOWDIRTYSTATE=true