Git Shortcuts that come in handy during development to make things easier.
Edit /.gitconfig and add a section like below:
[alias]
co=checkout
cob=checkout -b
br=branch
brd=branch -d
brD=branch -D
st=status
cm=commit -m
unstage=reset --soft HEAD^
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cvlue\\ [%cn]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cvlue\\ [%cn]" --decorate --
numstat
la="!git config -l | grep alias | cut -c 7-"
Adding Bash aliases - Edit /.bashrc as below,
echo ".bashrc running..."
alias al='source C:\\Users\\{{username}}\\.bashrc'
alias cdgit = 'cd C:\\Git'
{{similarly you can all shortcutes to your workspaces for easy navigation}}
alias gcd='git checkout develop ; git status'
alias gs='git status'
alias g='git'
alias gp='git pull'
alias h='history'
alias ll='ls -la'
echo "done."
Once you make a change in .bashrc, the results don't show immediately, unless you run
"source C:\\Users\\{{username}}\\.bashrc" in your terminal. (alias al)
To search all directories and files below your current directory for the string
"ThrowException" - grep -r ThrowException
HAPPY CODING :) !!!
Comments
Post a Comment