Skip to content

A project for learning the github workflow. Feel free to open pull requests and play around!

License

Notifications You must be signed in to change notification settings

rbreu/github-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-playground

A project for learning the github workflow.

Feel free to open pull requests and play around to see how the github workflow works.

The basic workflow

  1. Fork this github repository. Use the "Fork" button on the github page. You have now your own version of this repository you can submit changes to.

  2. Clone your fork of the repository, e.g:

     git clone [email protected]:YOURNAME/github-playground.git
    
  3. Create a local branch that holds your bugfix:

     git checkout -b my-fix-branch
    
  4. Fix the bug!

  5. Commit:

     git add .
     git commit -m "I fixed the thing!"
    
  6. Push your local commit to your github repository:

     git push origin my-fix-branch
    
  7. Make a pull request on the github page

  8. Get changes from main repository back into your fork and clone. First, make the main repostory known within your project (only do this once):

     git upstream [email protected]:rbreu/github-playground.git
    

    Then you can get the changes by either:

     git pull upstream master
    

    or:

     git fetch upstream
     git checkout master
     git rebase upstream/master
    

Push to your clone

    git push origin master

Links

About

A project for learning the github workflow. Feel free to open pull requests and play around!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published