SVN = 1 [remote] (with all versions) - N [local]
Git = N [remote] - N[local] (with all versions)
Git has branch
function
- init
- clone
- add (from unstaged to staged)
- commit
- push
- pull
- status
- export svn repo
- new repo in gitlab
- add .gitignore from github
- add ReadMe.md
- git commit
- first commit
- commit message: ACTION description
- ADD, DELETE, UPDATE, CHANGE, FIX...
- JIRA#102 description
- don't combine multiple actions in one commit
- represents an independent line of development
- You can think of them as a way to request a brand new working directory, staging area, and project history
- good for experimenting
- combine 2 branches commits in to one branch
- manage branches systematically
- develop: for development
- master: for production release
- feature: new feature, testing, new functions
- release: from develop to release, env. migration or bug fix
- hotfix: fix bugs on production, once finished, merge to master + develop
- for new phase, open a new branch like
develop_phase1
for a copy of old phase, and keep develop a new phase ondevelop
- if you find a bug in old phase, fix it in
develop_phase1
branch. - then check out current
develop
branch and mergedevelop_phase1
fixes.
- remark for important point in development
- e.g. build release
- Tag versioning
- major.minor.patch.buildnumber
- major: not backward compactible change
- minor: backward compactible with a new feature
- patch: bugfix
- build number: each time build release
- sync with mobile app version number
- use of markdown
- markdown cheatsheet
- Build configuration, api keys, structure, environment, remarks, etc...
- gitlab project page
- show gitlab interface
- how to add a new project
- how to name a project
- how to add project members