Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

setting git aliases

git config --global alias.st status
git config --global alias.ci commit
git config --global alias.co checkout
git config --global alias.br branch
Comment

create git aliases

$ git config --global alias.ac "!git add -A && git commit -m"
Comment

git list aliases

$ git config --get-regexp alias
Comment

git alias

$ git config --global alias.co checkout
$ git config --global alias.br branch
$ git config --global alias.ci commit
$ git config --global alias.st status
Comment

git list alias commands

# Alias to list all saved alias
git config --global alias.alias "!git config --get-regexp ^alias."

#then
git alias
Comment

git alias list

# Setup short form of commands to save keystrokes

git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
Comment

git aliases

git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.com commit
git config --global alias.stat status
Comment

git alias list

git config --get-regexp alias
Comment

bash git aliases

alias gs='git status '
alias ga='git add '
alias gb='git branch '
alias gc='git commit'
alias gd='git diff'
alias gco='git checkout '
alias gk='gitk --all&'
alias gx='gitx --all'

alias got='git '
alias get='git '
Comment

PREVIOUS NEXT
Code Example
Shell :: github api fetch 
Shell :: wine command not found 
Shell :: jenkins store sh output in variable 
Shell :: how to install virtualbox in ubuntu 18.04 
Shell :: install teamviewer ubuntu 18 
Shell :: bash get package dependencies 
Shell :: find all .desktop files linux 
Shell :: if command has output bash 
Shell :: git branch 
Shell :: openssl check certificate expiration 
Shell :: git delete local branch 
Shell :: find command in linux 
Shell :: kde 144 fps 
Shell :: generating a new ssh key 
Shell :: github push local branch to remote 
Shell :: git reset to undo a merge 
Shell :: mssql-tools : depends: msodbcsql17 (= 17.3.0.0) but it is not going to be installed 
Shell :: how to view current ssh git 
Shell :: express js 
Shell :: running localhost check in linux terminal 
Shell :: change display resolution on terminal 
Shell :: what does source command do in linux 
Shell :: clone with ssh gitlab fatal: Could not read from remote repository. 
Shell :: bash remove trailing whitespace from every line 
Shell :: $$ in shell script 
Shell :: force remove a hidden folder in linux 
Shell :: remove yum package 
Shell :: Unsupported upgrade request. 
Shell :: git remove file from commit 
Shell :: git overwrite remote files 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =