import micorixTheme from './theme'; import {DeckHeading, FullFrame, GitAreaFlex, Layout, NarrowContainer, RoundedImage} from "./styles"; export const theme = micorixTheme;
Git Intro
by micorix
git --version
Version control system
- Keeping track of software version
- Possibility to revert unwanted changes
- (Easy) Collaboration
Creator of git & linux kernel maintainer
You can disagree with me as much as you want, but during this talk, by definition anybody who disagrees is stupid and ugly. So keep that in mind. When I'm done speaking, you can go on with their lives.
Git is distributed, file-based version control system
git init
- blob
- tree
- commit
Branch as a pointer
Working directory Staging area Repository
git status
git log
git add some_file.py another_file.java
You can use dot to add all modified files (regex)
git add .
git mv some_file.py
git rm some_file.py
git commit -m "My commit message"
git push
git push -u origin my_branch
- where
my_branch
is usuallymaster
ormain
.
git diff
git merge
git checkout
git pull
You can find them in git-intro-workshop repo