git clone vs git pull 1

git clone vs git pull

Clone: Get a working copy of the remote repository.
Pull: I am working on this, please get me the new changes that may be updated by others.

Here is what the above code is Doing:
1. Create a new directory called “my_first_repo”
2. Change the current working directory to “my_first_repo”
3. Initialize a new git repository in the current working directory
4. Create a new file called “README.md”
5. Add the new file to the staging area
6. Commit the changes to the repository
7. Add a remote repository called “origin”
8. Push the changes to the remote repository

Similar Posts