Configure Git and GitHub

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

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>


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

git push origin master


And done!

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

Related Questions In Git & GitHub

–1 vote
1 answer

Having problem in Github and remote Git repo with production and development code

I think you could start with this. The ...READ MORE

answered Apr 10, 2018 in Git & GitHub by shubham
• 7,320 points
0 votes
1 answer

Implement automation between Git and GitHub.

Hi@akhtar, Every Git repository has a .git/hooks folder with a ...READ MORE

answered May 4, 2020 in Git & GitHub by MD
• 95,300 points
+1 vote
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 vote
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
• 7,040 points
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 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,450 points
0 votes
3 answers

difference between git remote and git clone

HI.... GIT REMOTE add just creates an entry in ...READ MORE

answered Jul 11, 2020 in Git & GitHub by anonymous