1. git --version
You can check your current version of Git by running the git --version
2. git clone
git clone is primarily used to point to an existing repo and make a clone or copy of that repo at in a new directory, at another location.
3. touch README.md
The touch command is the easiest way to create new, empty files.
4. git status
The git status command displays the state of the working directory and the staging area.
5. vi filename.txt
vi is an interactive text editor that is display-oriented: the screen of your terminal acts as a window into the file you are editing.
6. git add README.md
The git add filename.extension command adds single file change in the working directory to the staging area.
7. git add .
The git add . command adds all files change in the working directory to the staging area.
8. git commit -m "your own message"
git commit -m "commit message". A shortcut command that immediately creates a commit with a passed commit message.
9. git branch developer1
The git branch newbrach helps in creating new branch.A branch represents an independent line of development. Branches serve as an abstraction for the edit/stage/commit process. You can think of them as a way to request a brand new working directory, staging area, and project history.
10. git branch
The git branch give list of branches created in current repository. Green colored and * marked branch is the current running branch.
11. git checkout branch_name
The git checkout command lets you navigate between the branches created by git branch.
12. git switch branch_name
The git switch is the alternative of git checkout command, it lets you navigate between the branches created by git branch.
13. git remote
The git remote command lets you create, view, and delete connections to other repositories. Remote connections are more like bookmarks rather than direct links into other repositories.
14. git push origin main
We usually run git push origin main to push your local changes in main branch to your online repository.
15. git log
Git log is a utility tool to review and read a history of everything that happens to a repository.
Proper Readme
Add 2 collaborator
Host GitHub Pages using settings (Designed to host your personal, organization, or project pages from a GitHub repository)
https://shivwahh.github.io/git_basics/
Create a Issue in your github repository.
Raise a pull request.