Command’s to Initialize existing repo on Git hub.

 

1.       Initialize the Git Repo

·         git init

2.       Add the files to Git index

·         git add -A

3.       Commit Added Files

·         git commit -m 'Added my project'

4.       Add new remote origin

·         git remote add origin git@github.com:name/my-new-project.git

5.       Push to GitHub

·         git push -u -f origin master

Comments

Popular Posts