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
836 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,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,340 points

edited Dec 15, 2023 by Khan Sarfaraz 1,170 views
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,460 points
992 views
+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
6,339 views
+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,060 points
3,594 views
+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
4,064 views
+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
1,387 views
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
23,578 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP