Git Command

Go to the directory you want to initiate Git and then follow the commands:

  1. Initiate the git:
    git init
  2. Remove Git if you have initiated in a wrong place ( Be aware if there is another git in the subdirectory):
    rm -rf .git
  3. To add all the files(including subdirectory) to staging step:
    git add -A