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
83313853
Commit
83313853
authored
Jul 31, 2018
by
huasheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add readme
parent
0af7e879
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
README.md
README.md
+25
-0
No files found.
README.md
0 → 100644
View file @
83313853
## 简介
> 本项目旨在提供一些方便于工作中git操作命令
> 目前仅仅提供了两个命令,后续大家可以继续补充
## 使用方法
> 自己项目clone到本地,然后为命令配置下别名,即可方便后续使用
## 详解
-
git_merge_branch.sh
<target
_branch
>
<need
_push_after_merge
>
> 提供了方便的分支合并以及向远端仓库推送的命令集合,工作中常见的场景为:提测阶段,需要将开发分支合并到testing分支,然后进行QA环境的部署
#### 参数
-
targe_branch
> 待合并的分支名称
-
need_push_after_merge 0-否 1-是
> 是否需要在合并后,将目标分支推送到远端仓库。默认为0
> * 进入要处理项目根目录下,处理好未提交的代码,保证工作区以及暂存区处于干净的状态
> * 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