Skip to content
- Git Initialization – $ git init
- Git Clone – $ git clone <repository url>
- Git Clone From an branch – $ git clone -b <branch name> <repository url>
- For view branch – $ git branch , $git branch -a
- For checkout new branch – $ git checkout <branch name>
- for create and checkout new branch – $ git checkout -b <branch name>
- for file changes – $ git status
- Add file for commit – $ git add <file or folder name>
- Commit message – $ git commit -m “commit message”
- for pull code from repository – $ git pull <repository url or remote name like – origin / destination> <branch name>
- for push code from repository – $ git push <repository url or remote name like – origin / destination> <branch name>