Manage git repository 仓库管理

描述

使用 projjbetter-commits 管理 git 仓库

安装

npm

pacman -Sy nodejs npm
sudo chown -R $(whoami) ~/.npm
# change source
npm config set registry https://registry.npmmirror.com/

# install nrm to manage sources
npm i -g nrm
# list sources
nrm ls
nrm current
# add source
nrm add taobao https://registry.npmmirror.com/

projj & better-commits

npm i -g projj better-commits

操作步骤

初始化

projj init
# set base directory
# or change base directory, default is ~/projj, to /path/to/code
vi ~/.projj/config.json

导入旧的 repo

# import existed repo
projj import /path/to/repo
projj find <repo>
<Ctrl-v> # paste
# create a repository-specific config
better-commits-init

添加新的 repo

# add new repo
projj add <git-repo>
<C-v>
better-commits-init
# stage some changes
better-commits

可以利用 projj 提供的 alias 功能

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容