Linking an Existing Project to a Git Remote
علی ذوالفقار
1400/05/04 18:21:12 (653)
Linking an Existing Project to a Git Remote
If you did not create your project from a Git repository, you can link an existing project to a Git remote (for example, git@github.com:username/repo.git) so that you can push and pull your code.
Launch a new session.
Open a terminal.
Enter the following commands in Shell
git init
git add *
git commit -a -m 'Initial commit'
git remote add origin git@github.com:username/repo.git