Introduction to git
and GitHub
Miguel Xochicale, PhD
Zakaria Senousy, PhD
mxochicale/
{
intro-to-git-and-github
}
2024-04-20 @ Link for grid-worms-animation 2023
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"
git init
git clone https://github.com/username/repository.git
git status
git add <file>
git commit -m "Commit message"
git pull origin master
git remote add origin https://github.com/username/repository.git
git push origin master
git branch
: List, create, or delete branches.git switch <branch>
: Switch branches.git log
: Display commit logs.git diff
: Show file differences not yet staged.git rebase
: Reapply commits on top of another base tip.git clone git@github.com:mxochicale/intro-to-git-and-github.git
How to Make the Best Guacamole?