How to initialize a git repository and linked it to a remote repository provider
Tech-Today

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.

  1. Find out what is the repository url, you can see it at github. For example: https://github.com/czetsuya/JAX-RS-REST-Security.git
  2. Open command prompt
  3. Change directory to where your project is.
  4. In the command promp execute:
    1. >git init
    2. >git add .
    3. >git commit -m "Initial commit"
    4. >git remote add origin https://github.com/czetsuya/JAX-RS-REST-Security.git
    5. >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:
  1. >git remote add origin https://github.com/czetsuya/JAX-RS-REST-Security.git
  2. >git push -u origin master




- Committing The Source Code On Github
Slack Discussion Repositories https://github.com/terawarehouse/terawarehouse-cataloghttps://github.com/terawarehouse/terawarehouse-reactTo commit our project in Github, make sure you already created a new Github repository and then: Get the repository...

- How To Integrate Querydsl In Your Javaee7 Project
This guide requires knowledge on: mavengiteclipsequerydslwild flyWe will show you how to modify the javaee7-archetype project to integrate querydsl. For those who do not know, it is a library to unify queries in java. What I like more about it is that...

- Repository Management
GITHow to invoke a Jenkins build from Assembla on GIT pushHow to initialize a git repository and linked it to a remote repository providerSVNHow to setup your google code repository to be accessible in mavenMAVENHow to push external jar into artifactory...

- How To Sync Github And Openshift Git Repository
OpenShift is such a wonderful playground for those who want to try and experience real javaee6/jboss cloud hosting. But often some of us wanted to host the code in another git repository like github or bitbucket or somewhere else. This article will try...

- How To Clone A Project From Github And Import In Eclipse
This page will teach us how to clone a project from GitHub to your local repository and import in eclipse. Prerequisites: 1.) Windows/Ubuntu with JDK6/7. 2.) eclipse (I'm using Juno) with egit, m2eclipse, m2e-egit plugin (from eclipse marketplace)....



Tech-Today








.