- BASICS
- States
- Ignore
- Remove
- Reset
- Restore
- BRANCH
- Create Branch
-
Merge Branch
- Force Merge
- Undo Merge
- Php Branch
- Diff
- UNDO
- Push Force
- Exclude Files
- GITHUB
- Hooks
- Repository
- Authentication
Branch
Create a branch named hotfix.
git checkout master
git checkout -b hotfix # Look here
touch bugfix.htm
git add bugfix.htm
git add .
git commit -m "Added from hotfix"
Merge
Merge and then delete hotfix branch.
git checkout master
git merge hotfix # Look here
git branch -d hotfix
# Then you can continue in dev
git checkout dev
git merge master
Last update: 533 days ago