Git commands….

1) Clone repository-

git clone “xyz.git”

2) Add files-

git add “filename.ext” OR *.*

3) Commit files-

git commit -m “message”

4) Push to remote repository-

git push origin master

5) Delete files-

git rm “file-1.txt”    [It deletes from both local and repo]

git rm –cached “file-1.txt”  [It removes only form repo]

6) Delete folder-

git rm -rf “folder name”

7) Status-

git status

8) Pull from remote repository-

git pull –all