{"id":25344679,"url":"https://github.com/luciaheredia/pushdirectoryfromlinuxshell","last_synced_at":"2026-05-01T13:31:12.992Z","repository":{"id":274074697,"uuid":"921829455","full_name":"LuciaHeredia/PushDirectoryFromLinuxShell","owner":"LuciaHeredia","description":"Guide: Pushing a Directory from Linux Shell to Github","archived":false,"fork":false,"pushed_at":"2025-01-24T18:39:02.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T15:21:20.255Z","etag":null,"topics":["directory","git","git-commit","git-init","git-push","git-repository","guide","linux","linux-shell"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LuciaHeredia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-24T17:38:24.000Z","updated_at":"2025-01-24T18:39:06.000Z","dependencies_parsed_at":"2025-01-24T18:42:20.174Z","dependency_job_id":null,"html_url":"https://github.com/LuciaHeredia/PushDirectoryFromLinuxShell","commit_stats":null,"previous_names":["luciaheredia/pushrepofromlinuxshell"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LuciaHeredia/PushDirectoryFromLinuxShell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuciaHeredia%2FPushDirectoryFromLinuxShell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuciaHeredia%2FPushDirectoryFromLinuxShell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuciaHeredia%2FPushDirectoryFromLinuxShell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuciaHeredia%2FPushDirectoryFromLinuxShell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LuciaHeredia","download_url":"https://codeload.github.com/LuciaHeredia/PushDirectoryFromLinuxShell/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuciaHeredia%2FPushDirectoryFromLinuxShell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32499681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["directory","git","git-commit","git-init","git-push","git-repository","guide","linux","linux-shell"],"created_at":"2025-02-14T11:39:05.661Z","updated_at":"2026-05-01T13:31:12.663Z","avatar_url":"https://github.com/LuciaHeredia.png","language":null,"readme":"# Guide: Pushing a Directory from Linux Shell to Github \n1. Create a directory:\n```\nmkdir \u003cfolder-name\u003e\n```\n2. Go inside the directory:\n```\ncd \u003cfolder-name\u003e\n```\n3. You can create a README file:\n```\ntouch README.md\n```\n4. Initializes that directory as a Git repository by creating a **.git** subdirectory that contains all the necessary Git metadata for the repository:\n```\ngit init\n```\n5. Staging all changes in the current directory for the next commit:\n```\ngit add .\n```\n6. Commit with a message:\n```\ngit commit -m \"your message\"\n```\n7. In your Github account, create a new empty repository and copy the URL.\n8. Add the Github repository URL as a remote repository to your local repository(your directory):\n```\ngit remote add origin \u003cURL\u003e\n```\n9. Connect to Github using SSH:\n- Generate SSH key:\n  ```\n  ssh-keygen -t ed25519 -C \"\u003cyour_email@example\u003e.com\"\n  ```\n- Show and Copy SSH key:\n  ```\n  cat ~/.ssh/id_ed25519.pub\n  ```\n- Put SSH key in your Github account:\n  - Settings -\u003e SSH keys and GPG keys -\u003e New SSH keys\n10. Change the remote URL for your local repository, to **git@github.com**: \u003cbr/\u003e\n(Make sure you have the necessary SSH key set up on GitHub to authenticate with this new URL)\n```\ngit remote set-url origin git@github.com:\u003cusername\u003e/\u003crepository\u003e.git\n```\n11. Verify the change:\n```\ngit remote -v\n```\n12. Push commited changes to Github: \u003cbr/\u003e\n(If **remote-branch-name** already exist, choose a different one)\n```\ngit push -u origin \u003cremote-branch-name\u003e\n```\n\n\n*Author*: [LuciaHeredia](https://github.com/LuciaHeredia)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluciaheredia%2Fpushdirectoryfromlinuxshell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluciaheredia%2Fpushdirectoryfromlinuxshell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluciaheredia%2Fpushdirectoryfromlinuxshell/lists"}