Here are few basic git command for beginners.

git init  --To Initialize git
git add filename  -- To Add Specific File
git add .    ---It Adds all the files
git add . --force  ---Forcefully it adds all the files
git commit -m "comment" -- It Commits previously added files
git remote add origin "Put URL of your git"  --It Adds to provided git
e.g.  git remote add origin
git push -u origin master  --Pushes file to master branch

Leave a Reply

Your email address will not be published. Required fields are marked *