Skip to content

Latest commit

 

History

History
119 lines (78 loc) · 2.82 KB

01.md

File metadata and controls

119 lines (78 loc) · 2.82 KB

Git basic commands

What you will learn

  • Create slides with markdown
  • The git basic commands

📡 Installation

👾 Before we start the exercise

👨‍🚀 Exercise 1.1

  • Configure user settings with
git config --global user.name "Your full name"
git config --global user.email "[email protected]"
  • Check your identity
git config -l

👨‍🚀 Exercise 1.2

We are goint to create slides for your next talk with spectacle.

  • Create a new folder somewhere (Example: ./workspace/github-bootcamp/).
  • Create a new markdown based presentation
npx create-spectacle
? What type of deck do you want to create? ›
    One PageMarkdown    // select this one
    React using Vite
    React using webpack
cd 'name-of-your-presentation'
npm install raw-loader
npm start

You can see the presentation at http://localhost:3000

  • replace the content of slides.md with:
<!-- slides.md -->

# GitHub Bootcamp

---

## This is my slide

---

## Happy Hacking

Congratulations! now you can save your work.

gss
gaa
gcmsg ':new: initial commit'

📡 How to explore aliases?

Aliases are a great way to be super productive. But maybe you are wondering what's under the hood? If you are lost you can explore what's behind with

alias gss

👨‍🚀 Exercise 1.3

All the new slides should be based on the oh-my-zsh cheatsheet. And feel free to commit your changes during the process.

gssgit status -s <--- using this is fine but we should learn the fast and shorcut way

  • Create a slide "How to initialise a new repository"
  • Commit your work
  • Create a slide "How to review changes"
  • Commit your work
  • Create a slide "How to commit changes"
  • Commit your work

👽 Bonus

  • create a git today alias to check what you have accomplished today

This is an example of my configuration

alias.today=log --since=midnight --author='Your full name' --oneline

🏅 Elaboration and Feedback

After the exercice, to remember what you've just learned, then fill out the elaboration and feedback form.