Pages

Wednesday, 23 July 2014

How would you change your git repository when your location on the server has changed ?


Introduction :
  1. What is remote ? Remote repositories are versions of your project that are hosted on the Internet or network somewhere
  2. What is origin ? If you’ve cloned your repository, you should at least see origin — that is the default name Git gives to the server you cloned from
  3. What does git remote do ? To see which remote servers you have configured, you can run the git remote command. It lists the shortnames of each remote handle you’ve specified.
How to :
  1. git remote rm origin //this will remove the previous origin
  2. git remote add origin <new url location> //this will add the new location on github as the remote
References : 

No comments:

Post a Comment