Git resources
UsinGit is a site where beginners can learn Git using examples and tutorials
GIT commands you need to know
Creation of a new repository:
Cloning a repository:
Displaying status of files:
Creation of a new repository: git init
Basic usage
This command initializes a new Git repository in the current directory:
git init
Advanced usage
If you need to init a repository in a specific directory, just ad the directory name as an argument:
git init your-new-project-directory
Cloning a repository: git clone
Basic usage
Clones a repository from an URL into a new folder on a local computer.
git clone https://github.com/example/repo.git
Advanced usage
You can clone a specific branch, e.g. a dev
branch:
git clone git@github.com:example/repo.git -b dev
Displaying status of files: git status
Basic usage
Displays status of the files in the repository - which are staged, unstaged, or untracked.
git status