Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git: create and remove git alias command

// *** List all Alias command
% git config --get-regexp alias


// *** Create Alais command

// 1. Single command
% git config --global alias.st status   // like:::  % git st   ===   % git status
% git config --global alias.br branch   // like:::  % git br   ===   % git branch

// 2. multiple command
% git config --global alias.a '!git add -A && git commit -m'
% git config --global alias.lo 'log --oneline'   // like:::  % git lo   ===   % git log --oneline


// *** Edit Alias
% git config --global alias.lo log       //  <old-alias> <new-command>

// *** Delete Alais command

% git config --global --unset alias.lo   // :::  remove alias
Comment

PREVIOUS NEXT
Code Example
Shell :: Steps to deploy your flutter project with surge 
Shell :: ubuntu change username 
Shell :: gcloud app deploy 
Shell :: bash how to run remote command 
Shell :: new branch not showing in visual studio 
Shell :: uniq bash 
Shell :: how to exit docker 
Shell :: generate certificate 
Shell :: anaconda windows terminal 
Shell :: diff specific file git different branches 
Shell :: how to install xfce 
Shell :: npm install webpack 
Shell :: merge child branch to parent git 
Shell :: run screen on background linux terminal 
Shell :: cmd copy all files to another folder 
Shell :: how to remove stuff from git 
Shell :: ssh command delete file 
Shell :: open port on firewall linux 
Shell :: Linux command line search and replace string in all files 
Shell :: sudo without password 
Shell :: Kubectl get memory usage of pod 
Shell :: delete auto purge 
Shell :: npm install version 
Shell :: htpasswd add user 
Shell :: git bring your changes to a new branch 
Shell :: linux memes 
Shell :: tv on ubuntu 
Shell :: change crontab editor 
Shell :: hello world 
Shell :: how to delete all branches in git except master 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =