Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
git-tools
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
common-tools
git-tools
Commits
41f017a6
Commit
41f017a6
authored
Jul 31, 2018
by
huasheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update readme
parent
83313853
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
18 deletions
+14
-18
README.md
README.md
+14
-18
No files found.
README.md
View file @
41f017a6
## 简介
### 简介
本项目旨在提供一些方便于工作中git操作命令
目前仅仅提供了两个命令,后续大家可以继续补充
> 本项目旨在提供一些方便于工作中git操作命令
### 使用方法
> 目前仅仅提供了两个命令,后续大家可以继续补充
自己项目clone到本地,然后为命令配置下别名,即可方便后续使用
## 使用方法
### 详解
#### git_merge_branch.sh <target_branch> <need_push_after_merge>
> 自己项目clone到本地,然后为命令配置下别名,即可方便后续使用
提供了方便的分支合并以及向远端仓库推送的命令集合,工作中常见的场景为:提测阶段,需要将开发分支合并到testing分支,然后进行QA环境的部署
##### 参数
## 详解
-
git_merge_branch.sh
<target
_branch
>
<need
_push_after_merge
>
> 提供了方便的分支合并以及向远端仓库推送的命令集合,工作中常见的场景为:提测阶段,需要将开发分支合并到testing分支,然后进行QA环境的部署
#### 参数
-
targe_branch
-
targe_branch
>
待合并的分支名称
待合并的分支名称
-
need_push_after_merge 0-否 1-是
-
need_push_after_merge 0-否 1-是
>
是否需要在合并后,将目标分支推送到远端仓库。默认为0
是否需要在合并后,将目标分支推送到远端仓库。默认为0
> * 进入要处理项目根目录下,处理好未提交的代码,保证工作区以及暂存区处于干净的状态
##### 使用
> * sh git_merge_bransh.sh testing 1
进入要处理项目根目录下,处理好未提交的代码,保证工作区以及暂存区处于干净的状态
sh git_merge_bransh.sh testing 1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment