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
62 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,420 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
• 6,910 points
153 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 in Git & GitHub by MD
• 24,100 points
37 views
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
3,033 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,960 points
701 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,420 points
497 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,420 points
65 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
• 51,850 points
2,605 views