Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stewid/test-01
Test to add an existing project to GitHub using SSH and git2r on GNU/Linux
https://github.com/stewid/test-01
Last synced: 27 days ago
JSON representation
Test to add an existing project to GitHub using SSH and git2r on GNU/Linux
- Host: GitHub
- URL: https://github.com/stewid/test-01
- Owner: stewid
- Created: 2015-08-16T07:15:30.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-06-07T06:12:35.000Z (over 6 years ago)
- Last Synced: 2024-06-12T18:16:44.912Z (5 months ago)
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Add an existing project to GitHub using SSH and git2r
Create a new repository on GitHub before running the following R code.
```r
library(git2r)# 1) Create a new repository
repo <- init("test-01")# 2) Add 'README.md' to local repository
add(repo, "README.md")# 3) Commit staged 'README.md'. Add sessionInfo to commit message
commit(repo, message = "Initial commit", session = TRUE)# 4) Add URL for the remote repository
remote_add(repo, "origin", "[email protected]:stewid/test-01.git")# 5) Create SSH credentials
cred <- cred_ssh_key("~/.ssh/id_rsa.pub", "~/.ssh/id_rsa")# 6) Push changes in local repository to GitHub
push(repo, "origin", "refs/heads/master", credentials = cred)
```---
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do