Guide to Handling GitHub Remote Repositories

Clone the Remote Repository

  • git clone <clone_url>

  • git remote -v - Is used to get the list of remote repositories linked with local repository

  • git push - Used to Push the changes from Local Repository to Remote Repository

    • git push -u <remote_name> <branch_name>

New Repo from Local Machine to Remote Server

  • Create Local Repository

  • Create an empty remote repo and link to local repo.

    • git remote add - To Link a remote repository to local repository

    • git remote remove - To remove a remote repository link from local repository

  • Create Readme file and push/pull few changes