Skip to content

psu-stewardship/git-workflow-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CAC git-workflow-tutorial

Repo to use for tutorial on how we are using git in ScholarSphere workflow

  1. On your local computer cd into working directory (i.e. ~/workspace/ruby)

  2. Clone repo onto local computer

    git clone https://github.com/psu-stewardship/git-workflow-tutorial.git

  3. Change into working directory

    cd git-workflow-tutorial

  4. Log into redmine and find an issue in the git-workflow-tutorial project that you have been assigned

  5. In your local repo create a new branch for this issue

    git branch GWT-<ticket-number>

  6. Use new branch

    git checkout GWT-<ticket-number>

  7. Make changes to appropriate files to fix assigned issue

  8. Run tests

  9. Check to see what files have been updated

    git status

  10. Stage changed or newly added files for commit

    git add /path/to/file(s)

  11. Commit changes to local repository

    git commit -m "my change is going to solve most things that were broken which is pretty 'sawsome fixes #<ticket-number>"

  12. Back to master branch

    git checkout master

  13. Pull latest version of repo

    git pull origin master

  14. Back to feature branch

    git checkout GWT-<ticket-number>

  15. Rebase feature branch

    git rebase master

  16. Back to master branch

    git checkout master

  17. Merge changes from feature branch into master

    git merge GWT-<ticket-number>

  18. Run tests

  19. Update remote repo

    git push

About

repo to use for tutorial on how we are using git in scholarsphere

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages