How To Initialize A Git Repository Together With Linked It To A Remote Repository Provider

For instance we've merely created a novel projection in addition to desire to force it to a remote repository. Here's what nosotros require to do.

  1. Find out what is the repository url, you lot tin meet it at github. For example: https://github.com/czetsuya/JAX-RS-REST-Security.git
  2. Open dominance prompt
  3. Change directory to where your projection is.
  4. In the dominance promp execute:
    1. >git init
    2. >git add together .
    3. >git commit -m "Initial commit"
    4. >git remote add together rootage https://github.com/czetsuya/JAX-RS-REST-Security.git
    5. >git force -u rootage master
What if nosotros already initialized our repository? Then nosotros tin already skip steps 4.1-4.3 in addition to merely execute:
  1. >git remote add together rootage https://github.com/czetsuya/JAX-RS-REST-Security.git
  2. >git force -u rootage master
Next
Previous
Click here for Comments

0 komentar:

Please comment if there are any that need to be asked.