Saturday, June 18, 2016

Uploading a local project into github



  • Crate a repository in your github account manually


From git shell, go to your project directory and initiate git into it
git init
Now add your project all files to git
git add .
Now locally commit your project files
git commit -m "Initial Commit"
Now add your remote repository url to local git
git remote add origin https://github.com/imtiazUAP/uapians.git
Now pull your remote repository (Read Me File into your local)
git pull
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/master
Now pull your remote repository (Read Me File into your local)
git pull
Now push your local project into remote
git push -u origin master


Done!


This is a personal note of mine.