From 45c6e3654b706dbc8f4b4c343ad4f2b3f12a2d96 Mon Sep 17 00:00:00 2001 From: Sise-Tounkara <148393450+Sise-Tounkara@users.noreply.github.com> Date: Mon, 6 Nov 2023 22:21:05 +0000 Subject: [PATCH 1/2] Create Github-fundamentals-task.md --- Github-fundamentals-task.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 Github-fundamentals-task.md diff --git a/Github-fundamentals-task.md b/Github-fundamentals-task.md new file mode 100644 index 0000000..01058d8 --- /dev/null +++ b/Github-fundamentals-task.md @@ -0,0 +1 @@ +g From e14ecd77a44dfe17574b5a12fd3da9b167a2c065 Mon Sep 17 00:00:00 2001 From: Sise-Tounkara <148393450+Sise-Tounkara@users.noreply.github.com> Date: Mon, 6 Nov 2023 23:15:57 +0000 Subject: [PATCH 2/2] Update Github-fundamentals-task.md --- Github-fundamentals-task.md | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/Github-fundamentals-task.md b/Github-fundamentals-task.md index 01058d8..270dd88 100644 --- a/Github-fundamentals-task.md +++ b/Github-fundamentals-task.md @@ -1 +1,35 @@ -g + +## Things I have learnt ✅ + +1.CLI Commands. +2.What is **Git** and [**Github**](https://github.com/). +3.Difference between **Git** and [**Github**](https://github.com/). +4.Git commands and their uses Eg: + +- `git status` to get status of the working directory and the staging area. +- `git add .` or `git add [filename]` to stage changes. +- `git commit -m "commit message"` to commit changes. +- `git push` to push changes to the remote repository. +- `git log` to get a report of all the commits you have made. + +5.How to create a repository local & remote. +6.How to add files to a repository. +7.How to create branches and how to merge them Eg: + +- `git branch` lists branches. +- `git branch [new-branch-name]` to create a new branch. +- `git checkout` to switch branches. +- `git checkout -b [new-branch-name]` creates new branch with all the history from the branch you are currently on. + +8.Git best practices Eg: + +> 1. Using imperative language in commit messages. +> 2. Making small frequent commits. +> 3. Using branches to work on different features, fix bugs etc. + + +## Things i am still confused about 😕 + +1.Pull requests. + +