menu search more_vert

How to Pushing your local project to GitHub

watch_later 2018/06/18

Creating a new repository

Type a name for your repository and Create

Now open Terminal from local project Type

1- Initialize the local directory as a Git repository.
 $ git init 

2- Adds the files in the local repository and stages them for commit.
$ git add .

3- Commits the tracked changes and prepares them to be pushed to a remote repository.
git commit -m "add your commit"

4- Sets the new remote
git remote add origin remote repository URL
$ git remote add origin

5- Pushes the changes in your local repository up to the remote repository
git push origin master

sentiment_satisfied Emoticon