GIT Talk - From zero to hero crab

Summary

This README.md provides a concise overview of the LaTeX document "GIT Talk - From zero to hero crab". It serves as a cheatsheet for Git commands and includes links to interesting GitHub repositories mentioned in the slides.

Basic commands

  • git init: Create a new Git repository in the current directory.
  • git add <file>: Add file(s) to the staging area for the next commit.
  • git status: Check the status of the repository, showing tracked/untracked files and changes.
  • git diff: Show changes between the working directory and the staging area or between branches.
  • git commit -m "message": Commit staged changes with a descriptive message.
  • git log: View commit history, showing commits, authors, dates, and commit messages.
  • git checkout <branch>: Switch to another branch or restore working tree files.
  • git branch: List all local branches in the repository.
  • git pull <remote> <branch>: Fetch changes from a remote repository and integrate them into the current branch.
  • git push -u <remote> <branch>: Push the current branch to a remote repository and set up tracking.

Advanced commands

  • git remote add <name> <url>: Add a new remote repository to the list of remotes.
  • git reset --hard <commit>: Reset the current HEAD to the specified state, discarding all changes.
  • git merge <branch>: Combine changes from another branch into the current branch.
  • git rebase <branch>: Reapply commits on top of another base tip.
  • git stash: Temporarily shelve changes to clean the working directory.
  • git reflog: View a log of all commits that were made in the repository.

Sites of interest

  • Slides Demo: GitHub repository for the presentation demo.
  • RefuAPP: GitHub repository for RefuAPP project.
  • Spam-Number-Filter: GitHub repository for Spam Number Filter project.
  • SNMP-Python: GitHub repository for SNMP Data Analyzer project.
  • ToDoTurtle: GitHub repository for ToDoTurtle Android application.
  • hackudc-unplug: GitHub repository for hackudc-unplug backend project.