---
title: "Discussion on \"Code Snippet of steps to push to a github repository\" | Hashnode"
description: "Discussion on \"Code Snippet of steps to push to a github repository\". Innitialize the repo by using below line of code\n\ngit init\n\nAdd files from your local repository to the remote repo\n\ngit add .\n\nStage the added files for commitment\n\ngit commit -m \"commit message\"\n\nPoint the staged files to the repo and the branch\n\ng..."
url: "https://hashnode.com/posts/code-snippet-of-steps-to-push-to-a-github-repository/6278d19b766c7b81844f9ef6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Code Snippet of steps to push to a github repository](https://hamnanuru.hashnode.dev/code-snippet-of-steps-to-push-to-a-github-repository?utm_source=hashnode&utm_medium=feed)

Innitialize the repo by using below line of code git init Add files from your local repository to the remote repo git add . Stage the added files for commitment git commit -m "commit message" Point the staged files to the repo and the branch g...

May 9, 2022 · 1 min read · hamnanuru.hashnode.dev  
Read the article

-   [#roadmap](https://hashnode.com/tag/roadmap)

## Written by

[Nanteza Nuriat](https://hashnode.com/@HamnaNuruh)

@HamnaNuruh

  
[View profile](https://hashnode.com/@HamnaNuruh)

Scientist following revolution of technology

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
