diff --git a/recap.md b/recap.md new file mode 100644 index 0000000..8745005 --- /dev/null +++ b/recap.md @@ -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/)