Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
app
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hel-guide
app
Commits
9ccd3f0c
Commit
9ccd3f0c
authored
Aug 18, 2017
by
JingChao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates ionic/git-code.md
Auto commit by GitBook Editor
parent
402d9a59
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
git-code.md
ionic/git-code.md
+21
-0
No files found.
ionic/git-code.md
0 → 100644
View file @
9ccd3f0c
## 项目上git操作规范
*
项目上代码一般存放在develop分支
*
git checkout -b a //从develop分支切换到自己的分支
*
code //在自己分支编写代码
*
git add
*
*
git commit -m 'info' //提交
*
git checkout develop //切换回develop分支
code //编写代码
git add
*
git commit -m 'info' //提交
checkout develop //切换回develop分支
git pull //更新代码
git merge a //merge自己的分支
(success)-> git push //没有冲突,直接提交
(fail)conflict //解决冲突
git add
*
git commit -m 'info'
git push //提交 完成
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