Skip to main content

5 steps to add existing project to your GIT HUB repository [Windows]

this tutorial will tell you how to add existing project to your git hub account.

Step1.
Go to your GITHUB account.
Create New repository 
add repository



Step2.
Fill the required details.
( uncheck create read me ).

Add details
 Step 3.
Open GIT shell from your desktop.





Step 4.
Go to the directory of your project using cd  “path of the project”
Initialize git by using command  git init
Add your files by using command  git add .
Commit your files by command git commit –m ‘first commit’

commands to add git

 STEP 5 Select your repository
Add using command git remote add origin https://github.com/username/projectname.git

Now push the project to git git push -u origin master
push command



Comments

.

Popular posts from this blog

Adding Node at the End of Linked List

Adding Node at the End of Linked List:- The method takes two parameter one a head node of a linked list and other data too insert. public void addNodeEnd ( Node head , int data ) { if ( head == null ) { System . out . println ( "list is empty" ); return ; } Node node = new Node ( data ); Node temp = head ; while ( temp . next != null ) { temp = temp . next ; } temp . next = node ; } To Know the basic structure of the linked list click here

DEPTH FIRST SEARCH IN JAVA

DEPTH FIRST SEARCH IN JAVA public void dfs () { vertex [ 0 ]. visited = true ; displyVertex ( 0 ); stackobj . push ( 0 ); while (! stackobj . isEmpty ()) { int v = adjVertex (( Integer ) stackobj . peek ()); if ( v ==- 1 ) { stackobj . pop (); } else { vertex [ v ]. visited = true ; displyVertex ( v ); stackobj . push ( v ); } } }