git clone <repository url>
- repository url = https://github.com/mnegi/web-development-sessions.git
- copying the remote repository to local machine
- this will get the repository in a new folder, and the name will be same as the repository name
- you will do this only once (first time)
you will go to the local repository folder in your machine make changes in the files & folders then you need to push these changes to the remote server
git add .
- adding our changes to the local respository
git commit -m "commit message"
- we are writing those changes to the local repository
- so that they can be tracked
git push origin master
- now we want the local changes to be saved in the remote/origin server
- we will push those changes to remote server in master branch
git pull origin master
- to get the latest changes from the remote repository