Skip to content

ValeriiVasyliev/codeable-git-workshop-hello-user

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

hello-user

A Demo repo for the Git Workshop at Codeable

Pre-requisites

  • Git is required to be installed before this workshop. You can download it from https://git-scm.com/downloads and install it on your machine. If you're using a Mac like me, Git should be already installed on your machine.
  • Other tools that are recommended to be installed for a smoother experience during the workshop:
    • Your favorite terminal app and text editor.
    • nvm: to manage Node and npm versions.
    • @wordpress/create-block: it will be installed during the workshop when we create the block plugin.
    • Composer: to manage PHP dependencies.
    • Github account: if you’d like to participate the collaboration session in the workshop, you need a GitHub account to submit Pull Request. Also, it is recommended to have a GitHub account so you can fork this repo and follow along the workshop.
  • Tools will be using for demo purposes in the workshop but not required for attendees:
    • oh-my-zsh: a framework for managing your zsh configuration.
    • Fig: a tool to make your terminal more interactive.
    • Sourcetree: a GUI for Git.
    • Fork: a GUI for Git.

How to use this repository

When you checkout an exercise branch, you will see a README.md file with instructions for the exercise. You can follow the instructions in the README.md file to complete the exercise. The resolution of the exercise is in its next exercise branch. For example, resolution of exercise 1 is in exercise-2 branch.

If you have uncommited changes in your working directory, you will not be able to checkout another branch. You can either commit your changes or stash them before checking out another branch. You may not be familiar with git stash but I would probably call it one of my favorite git commands.

In your current working tree, if you have uncommited changes, you can stash them by running:

git stash

Then, to get your stashed changes back, you can run:

git stash pop

With git stash pop, it actually does two things: it gets your stashed changes back and removes the stash from the stash list. If you want to keep the stash in the stash list, you can run:

git stash apply

To see the list of stashes, you can run:

git stash list

To remove a stash from the stash list, you can run:

git stash drop stash@{n}

I think we're ready to start the workshop now. Let's go!

Continue the Git journey in exercise 1

Check out the exercise-1 branch to continue the Git journey:

git checkout excercise-1

About

A Demo repo for the Git Workshop at Codeable

Resources

License

Stars

Watchers

Forks

Packages

No packages published