Configure Git and GitHub

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

1 answer to this question.

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,380 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
1,294 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,880 points
135 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,430 points
123 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
184 views
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,380 points
29 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
• 41,760 points
781 views