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
1ed9fe6d
Commit
1ed9fe6d
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
0c444089
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
git-code.md
ionic/git-code.md
+4
-1
No files found.
ionic/git-code.md
View file @
1ed9fe6d
## 项目上git操作规范
## 项目上git操作规范
*
项目上代码一般存放在develop分支(提交代码前建议进行备份)
*
项目上代码一般存放在develop分支(提交代码前建议进行备份)
*
git checkout -b a //从develop分支切换到自己的分支
*
git checkout -b a //从develop分支切换到自己的分支
(分支名字建议自己名字英文缩写)
*
code //在自己分支编写代码
*
code //在自己分支编写代码
*
git add
*
*
git add
*
*
git commit -m 'info' //提交
*
git commit -m 'info' //提交
...
@@ -14,4 +14,7 @@
...
@@ -14,4 +14,7 @@
-
git commit -m 'info'
-
git commit -m 'info'
-
git push //提交 完成
-
git push //提交 完成
*
git push //提交 完成
*
git push //提交 完成
*
git branch -d a //删除 本地 a 分支
*
git checkout -b a //创建本地 分支
\ No newline at end of file
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