Introduction to a git remote repository
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...
https://www.czetsuyatech.com/2014/07/git-introduction-to-remote-repository.html
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 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
What if we already initialized our repository? Then we can already skip steps 4.1-4.3 and just execute:
- >git remote add origin https://github.com/czetsuya/JAX-RS-REST-Security.git
- >git push -u origin master
Post a Comment