4 Star 23 Fork 6

Neil-鹏 / rust-tools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
git.sh 862 Bytes
一键复制 编辑 原始数据 按行查看 历史
Neil-鹏 提交于 2020-10-06 15:16 . modify proc
#!/bin/bash
# define dir variable get workdir
dir=`pwd`
# in workdir
cd $dir
git add .
# 提示输入提交信息
echo -n "input commit message:"
read input_msg
# 开始提交代码
git commit -a -m "$input_msg"
git pull
git push
git push gitee
echo "git commit and push success"
# 添加文件后需要在终端给脚本文件执行权限
# chmod 777 git.sh
# 1. 预览将要删除的文件
# git rm -r -n --cached 文件/文件夹名称
# 加上 -n 这个参数,执行命令时,是不会删除任何文件,而是展示此命令要删除的文件列表预览。
# 2. 确定无误后删除文件
# git rm -r --cached 文件/文件夹名称
# 3. 提交到本地并推送到远程服务器
# git commit -m "提交说明"
# git push origin master
# 4. 修改本地 .gitignore 文件 并提交
# git commit -m "提交说明"
# git push origin master
Rust
1
https://gitee.com/shaipe/rust-tools.git
git@gitee.com:shaipe/rust-tools.git
shaipe
rust-tools
rust-tools
master

搜索帮助