How to initialize a git repository and linked it to a remote repository provider
For example we've just created a new project and want to push it to a remote repository. Here's what we need to do. Find out what...

- Find out what is the repository url, you can see it at github. For example: https://github.com/czetsuya/JAX-RS-REST-Security.git
- Open command prompt
- Change directory to where your project is.
- In the command promp execute:
- >git init
- >git add .
- >git commit -m "Initial commit"
- >git remote add origin https://github.com/czetsuya/JAX-RS-REST-Security.git
- >git push -u origin master
- >git remote add origin https://github.com/czetsuya/JAX-RS-REST-Security.git
- >git push -u origin master
Post a Comment