Quantcast
Channel: pacesettergraam
Viewing all articles
Browse latest Browse all 315

Git working with Remote Repos

$
0
0

What we do is that we will fetch the repo, make changes then add another remote repo and push

Create a folder

Issue Command

$ git clone <remote_repo>

$ cd <repo_name>

Make changes to the repo

$ git remote -v  //lists all the Remote Repo’s Associated with

Im going to add a Repository

$ git remote add <repo_identifier> <repo_name>

$ git remote -v  //lists all the Remote Repo’s Associated with

$ git remote show origin  //Check the Remote Fetch and Push URL

$ git remote set-url –add –push origin  <repo_name>  //add your Repos to have push

$ git push -u origin master

 

Make the changes

 

 

 


Viewing all articles
Browse latest Browse all 315