sudo apt-get install git
git config --global user.name "user_name"
git config --global user.email "email_id"
git init Mytest
cd Mytest
vi README
vi sample.c
git add README
git add smaple.c
git commit -m "some_message"cd
git remote add origin https://github.com/user_name/Mytest.git
git push origin master