Showing posts with label Learn. Show all posts
Showing posts with label Learn. Show all posts

Saturday, 28 August 2021

Git Tutorial

First up, for you to push and pull the code you'll need a github account and also git installed on your system. If that's done continue reading -

• Go to the project top most folder and on right click you will see 'open gitbash here'.

• Type git init

• Now, in your github account, At the top right of any of the page, you should see a '+' icon. Click on that and Select 'New Repository'. After giving it a name click on 'Create Repository'.

• You will see a page titled 'Quick Setup'

• Copy the link in input right beneath the title, which looks like https://github.com/yourepo/repo.git

• Go back to command line on your system and type - git remote add origin [copied link]

Ex: git remote add origin https://github.com/yourepo/repo.git

• Push your branch by typing - git push origin master

• That's it you're done.