Wednesday, 26 November 2014

How to push a project into git ?

For windows:

Install Git in your os

after installing the git go for search...


search gitbash..

open the gitbash...

so it is opened like command prompt


type

cd where is your project


ex: if u r project is in e drive:


Step 1:


cd /e

Step 2: cd typeyourprojectname/


Step3:git init


we are creating initialising the project to the git

observe in our project there is a folder with the name

.git





Step4:
git add*


add the all files to the git


step4:git status


check for the git status all files are added or not


step5:git commit -am "firstcommit"




Login to the git account in web with u r account:

create new repository:




How to push project to the globally:






and paste in u r commansd prompt :


git clone "your http url " and enter


$ git remote add origin https://github.com/yourname/my_project.git

    git push origin master


asking for username :enter ur github username

asking for  password: enter your github password.


you find the some thing htttp:url just copy that






Folow the link :


http://befused.com/git/existing-project-github


Create a branch in gitHub:

https://www.atlassian.com/git/tutorials/using-branches





No comments:

Post a Comment