Skip to content

rupertbarton/git-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 

Repository files navigation

git-playground

Exercise A:

In your teams:

  • 1st team member:
    • Create a file
    • Add 3 words to start a story
    • Stage the file
    • Commit the file
    • Push the commit

while ( !story.finished ) {

  • Next team member:
    • Pull the changes
    • Add the next 3 words of a story
    • Stage the file
    • Commit the file
    • Push the commit

}

Exercise ii:

  • All team members create a new branch:
    • Add a final sentence to the story
    • Stage, Commit, Push
    • Open a Pull Request
  • 1st team member:
    • Merge in their PR
  • 2nd team member:
    • Try and merge in your PR and see what happens 😲

Useful commands

  • Pull changes: git pull
  • Stage files: git add <file_name>
  • Commit files: git commit -m '<your commit message>'
  • Push commit: git push
  • Checkout an existing branch: git checkout <branch-name>
  • Create and checkout a new branch: git checkout -b <new-branch-name>
  • Merge commits from another branch to your current branch: git merge <other_branch_name>

HELLO WORLD!!!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5