Configure Git and GitHub

0 votes
How do I configure my git repository with GitHub?
Apr 26, 2018 in Git & GitHub by Atul
• 10,200 points
14 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

In version control with Git, we deal with two repositories:

  1. Local repository, which will reside in your system.
  2. Remote/Central repository, which usually resides in a remote machine.

In this case, we want our central repository to GitHub. So, this is what we will do.

Assuming you have installed and configured git in your system, this is what you need to do-

Step 1: Set up GitHub as your remote repository

git remote add origin <link of your central repository>

image

Step 2: And now you can push your changes onto your GitHub repository

git push origin master

image

And done!

answered Apr 26, 2018 by DragonLord999
• 8,360 points

Related Questions In Git & GitHub

0 votes
1 answer
0 votes
1 answer

difference between git fetch and git pull

Both fetch and pull are used to ...READ MORE

answered Jun 27, 2018 in Git & GitHub by anonymous
391 views
0 votes
2 answers

Delete a git branch locally and remotely

Deleting a remote branch: git push origin --delete ...READ MORE

answered Aug 20, 2018 in Git & GitHub by Nilesh
• 6,900 points
56 views
0 votes
2 answers

What's the difference between git push and git commit?

I installed ubuntu on vagrant and gave ...READ MORE

answered Jan 2 in Git & GitHub by Ali
• 10,290 points
59 views
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer

Git & GitHub

Even though their names sound the same, ...READ MORE

answered Apr 26, 2018 in Git & GitHub by DragonLord999
• 8,360 points
11 views
0 votes
2 answers

difference between git remote and git clone

git remote add just creates an entry in ...READ MORE

answered Aug 7, 2018 in Git & GitHub by Kalgi
• 35,800 points
238 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.