git commands part 2

Here you can read part 1.

In this part, I will write about working with remote repositories. First create a remote repository. I will create on github. Login to your account and click Start a project

git command for remote repository, <span>git commands part 2</span>, KandZ

Choose name for the repository, if it is public or private and edit any other option you need to. Click Create repository.

git command for remote repository, <span>git commands part 2</span>, KandZ

You will need the repository address. Then click creating a new file.

git command for remote repository, <span>git commands part 2</span>, KandZ

I will create a README.mk

git command for remote repository, <span>git commands part 2</span>, KandZ

Now click Commit new file at the bottom of the screen. You need to scroll down.

git command for remote repository, <span>git commands part 2</span>, KandZ

Now git commands:

  • git clone – makes a full copy of a remote repository to a new directory. The directory name will be the name of the repo.
git command for remote repository, <span>git commands part 2</span>, KandZ
  • git remote – Manage set of tracked repositories.
  • git fetch – downloads files and metadata.
  • git pull – fetch and integrate with the local repo. It is the same as git fetch and git merge origin together.
git command for remote repository, <span>git commands part 2</span>, KandZ
  • git push – upload and update your changes to a remote repository
git command for remote repository, <span>git commands part 2</span>, KandZ

THE END!!!

90450cookie-checkgit commands part 2git commands part 2

Related posts