Event flow
-
Why should you learn Git and GitHub?
- Coding job
- Management/consulting
- Hackathon
- General collaboration
-
What is VCS?
- History
- Bugs
- Features
- Open Source
- Exposure
-
What is Git?
- DVCS
- https://git-scm.com
- Git Bash
-
Repositories
- Local - show local git_basics folder
- Remote
- show git_basics GH repo
- Git != GitHub
-
General overview - show pic above
git pull- Introduce adding (working dir & staging area) committing, pushing and pulling
-
git config -
git init -
show pic abv
git add -
git add -
git status -
git commit- Commit msg & descp
- Short
- Present imperative tense
- Importance of small commits
-
git log- SHA1
- Name & e-mail
-
Make a few more commits & show
git logagain -
GitHub #1
- Create new repo
-
get back to image abv
git push -
git remote -
git push -
GitHub #2
- overview
- repo
- Issues
- PR
- insights
- community
- README
- LICENSE
- CoC
- CONTRIBUTING.md
- network
- community
- Gist
- CodeSpaces
- GH Pages
- GH Actions
-
make change in remote repo.
-
git pull -
Branches
- Need
- Default branch
- What is it?
- The
mainvsmasterissue. git configcommand to change the default branch for GitHub.
git branch,git switch,git checkoutgit merge
-
Make a PR
- fork,
git clone - DON’T FORGET TO CREATE A NEW BRANCH, DOOFUS!
- Examples
- fork,
-
Removing credentials