Skip to content

Simple repository to show git flow during presentations

Notifications You must be signed in to change notification settings

AdamRylski/git-flow-training

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

git-flow-training

Simple repository to show git flow during presentations

Simple flow
  1. Clone remote repository
https://github.com/aztor22/git-flow-training.git
  1. Create new branch from master
git checkout -b 'features/[your_branch_name]'	
  1. Create branch on remote repository
git push --set-upstream origin features/[your_branch_name]
  1. Add new file and commit changes
git add .  
git commit -m 'your commit msg'
  1. Push changes to remote branch
git push
Flow with rebase
  1. Create new branch from master
git checkout -b 'features/[your_branch_name]'
  1. Create branch on remote repository
git push --set-upstream origin features/[your_branch_name]
  1. Add new file and commit changes
git add .  
git commit -m 'your commit msg'
  1. Ask me to do some changes and push them to master
  2. Checkout master and pull from remote
git checkout master  
git pull
  1. Checkout your branch and rebase changes from master
git checkout features/[your_branch_name]  
git rebase master
  1. Push changes to remote
git push
Gerrit flow
  1. Create new branch from master
git checkout -b 'features/[your_branch_name]'
  1. Create branch on remote repository
git push --set-upstream origin features/[your_branch_name]
  1. Add new file and commit changes
git add .  
git commit -m 'your commit msg'
  1. Ask me to do some changes and push them to master
  2. Checkout master and pull from remote
git checkout master  
git pull
  1. Checkout your branch and rebase changes from master
git checkout features/[your_branch_name]  
git rebase master
  1. Checkout master and rebase your changes on top of master
git checkout master
git rebase features/[your_branch_name]
  1. Push changes to remote
git push

About

Simple repository to show git flow during presentations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published