diff --git a/Github-fundamentals-task.md b/Github-fundamentals-task.md new file mode 100644 index 0000000..270dd88 --- /dev/null +++ b/Github-fundamentals-task.md @@ -0,0 +1,35 @@ + +## 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. + +