Breaking

Saturday, May 13, 2017

Git Lifecycle






Prerequisites :



  • Git installed in local system


  • GitHub Account

Step 1 :

Login to github account and create a new repository as shown below.

Step 2 :

As Soon as you create a repository github provides the cloning URL which is shown below,Copy this URL and Paste it Somewhere for further use.

Step 3 :


Navigate to your local working directory where your code is present, Assume we are in the following directory ,Right click here and open GIT BASH.


Step 4 :

Enter the following commands in GIT BASH.


git init
git add .
git commit -m "first commit"
git remote add origin https://github.com/powerschoolgithub/DemoRepository.git
git push -u origin master 
--------------------------------------------------------------------------------------------------------------------------









Step 5 :


Go to your Github Repository and you can see your code.

That's it Guys It's a Very Simple Process, Please feel free to ask if you have any doubts post them in comments.

No comments:

Post a Comment