Skip to main content

How to Pushing your local project to GitHub


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
Example
$ git remote add origin https://github.com/ibrahim1973/GitHub-Guides.git

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


Comments

Popular posts from this blog

FreemeOS 5.3 [5.1.1][MT6580][k3.10.72] infinix HOT2

CyanogenMod 13 [6.0.1][MT6580][k3.18.19]

How to Create an Account on 4pda.ru