Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions recap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# What I learnt - Introduction to GitHub 🙇🏾‍♀️📚✏️

## What is github?

- Centralised cloud platform that allows developers to collaborate and contribute to repositories using git

## Git vs Github difference ⁉️

- Git - local version control system tool
- Github - Cloud platform for collaboration on git repositories

## Clone vs Fork difference 🤖

**Clone** - Create local copy of repo to make changes and collaborate (clone only)

**Fork** - Create Github copy of another individuals repo to collaborate. Request permission to make changes and submit a pull request (fork then clone)

## Important git commands

- git init (intialise a new repo)
- git pull (pull latest changes from remote repo)
- git checkout -b branch-name (create new branch and switch to it)
- git add . (stage all changes)
- git commit -m "message"(commit staged changes)
- git push -u origin (push to remote repo and set upstream)

## Resources

1. [Learn git branching](https://learngitbranching.js.org/)
2. [Git best practises](https://www.freecodecamp.org/news/how-to-use-git-best-practices-for-beginners/#best-practices-for-using-git)
3. [Markdown Syntax](https://markdownguide.offshoot.io/basic-syntax/)