- Only one time need to initialization
git init
- Add single file or folder or all changes made
git add filename
- Add a folder
git add folder_name
- Add all file
git add .
- Commit message should be meaningful sentence
git commit -m "commit message"
- Want to commit all changes
git commit -am "commit message"
- Add a remote
git remote add origin repository URL
- See Current remote URL or Verify new remote URL
git remote -v
- Change Current remote URL
git remote set-url origin repository URL
- Push Changes into remote URL
git push
git clone repository
- Git clone with customize folder name
git clone repository folder_name
git pull
- Git pull with a branch name
git pull origin name
- Reset all previous
git pull
codegit checkout .
- Checkout a single file or folder
git checkout file_name
orgit checkout folder
- Change a branch
git checkout branch_name