git Alias 设置 Git 使用比較多的话能够设置一些命令的 Alias ,简单的说就是用简写取代整个完整的命令. 如co 代表 checkout. Mac下,到根文件夹 cd ~ 然后 vi .gitconfig 然后在设置文件最后增加 [alias] co = checkout ci = commit st = status pl = pull ps = push dt = difftool l = log -stat cp = cherry-pick ca = commit -a b
git alias all in one workspace:工作区 staging area:暂存区/缓存区 local repository:或本地仓库 remote repository:远程仓库 what's git commit -a -m meanings? git commit -a -m -a === --all -m === --message $ git commit -h usage: git commit [<options>] [--] <pathspec>
git alias & zsh VPN & git work tree # git pull === gp ➜ .git git:(feature/select-seat-system) gp fatal: unable to access 'http://git.xgqfrms.xyz/projects/op-static.git/': getpeername() failed with errno 22: Invalid argument ➜ .git git:(feature/sel
NOTE: Following content is directly reprinted from http://andrewberls.com/blog/post/git-tricks-unstaging-files, please go to the original website for more details. ----------------------------------------------------------- Git tricks: Unstaging file