Create a New account in github
https://github.com/
-
install the git by the following command
apt install git -y -
Clone the repository
git cone https://github.com/sakthisgit/javaex.git -
Goto the folder javaex
cd javaex -
Create Folder by your name
-
Do your Exercise
-
Add all your New file and folder by the following command
git add . -
Commit your code to local repo
One time set global username and your mail git config --global user.email <YourMailId> git config --global user.name <Your Git UserName> git commit -a -m "Day1 Exercise" 1) It ask username and password provide your username and password -
Push your code to Remote Repo
git push (or) git push -u origin master -
Next time issue the following command to update
git merge and git pull