Git Remote Repository

Git Remote Repository

Git remote repository

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

In the last blog post, we have discussed how to rewrite git history.

https://cloudaffaire.com/git-rewrite-history/

In this blog post, we will discuss git remote repository. We will use GitHub as our remote repository in this demo.

Git remote repository:

Demo:

Create a GitHub account and login to your GitHub account. Create a repository in your GitHub account.

Git Remote Repository

Copy your remote repository https link

Git Remote Repository

Create a file and commit in remote repository

file name: remote_master

file content: “hello from remote_master”

commit message: “added in remote repo master branch”

Git Remote Repository

Git Remote Repository

Git Remote Repository

In remote repository, one branch named local_slave has been created due to above push.

Git Remote Repository

In remote repo create another branch remote_slave

Git Remote Repository

Create a file in remote remote_slave branch and commit

file name: remote_slave

file content: “hello from remote_slave”

commit message: “added in remote repo slave branch”

Git Remote Repository

To get more details on git, please refer below git documentation

https://git-scm.com/doc

 

Leave a Reply

Close Menu