Java – 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

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

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

I will create a README.mk

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

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 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 push – upload and update your changes to a remote repository

THE END!!!

Java – git commands part 2

Read More

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s