![]() Now, we’ll push the changes to the repository by adding the files, creating a commit, and pushing with: If you want to test this repository, create a README in PROJECTX (on the local machine) with: Upon successful authentication, the project will clone and you’re ready to go. You should be prompted for your SSH key authentication password. Git clone REMOTE is the IP address of the remote machine housing the git project. Git -init bare How to clone the new repositoryīack at your local machine, issue the command: Initialize the new (bare) git repository: How to create the repositoryīack on your remote machine create a repository directory (still as the user git) in the git users’ home with:Ĭreate a new project directory (we’ll name it PROJECTX) with: Paste the key and then save and close the file. Open the authorized_keys file on the remote machine with: Where USER is the user who’ll be working with git. Now, on your local machine view the id_rsa.pub file of the user who will be working on the git repository with the command: ssh directory and give it the proper permissions:Ĭreate the authorized_keys file and give it the correct permissions with: Give the new user a password and answer the remaining questions.Ĭhange into the git users’ HOME directory with:Ĭreate the. On the remote machine create a git user with: How to create a git user and copy your SSH keys
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |