一个固执己见的命令行工具,可以让您使用git和gitignore的生活更轻松
xgit的Python项目详细描述
xgit
一个固执己见的命令行工具,可以让git和gitignore让您的生活更轻松
安装
从pip作为全局安装。
pip3 install xgit
或者克隆repo并从克隆中安装(您也可以根据需要进行编辑)。
git clone https://github.com/patarapolw/xgit.git
pip3 install -e xgit
用法
$ xgit -h
Acceptable commands:
xgit init Initialize new git along with .gitignore
xgit commit message Commit to git with the following message
xgit cpush message Commit and push to git with the following message
xgit gi Generate gitignore from files in the directory
xgit push Push changes to origin
xgit Prompt for choices
$ xgit
What do you want to do?
1. Initialize Git
2. Commit current changes
3. Commit current changes and push to remote
4. Generate and commit .gitignore
5. Push to remote
Please select [1-5]:
注
.gitignore
是从https://www.gitignore.io/生成的,但是这个项目还允许我基于/xgit/gitignore/生成自定义的.gitignore
。- 要了解有关git的更多经验,请参见https://github.com/patarapolw/SimpleGit