Change directory to your application’s working path. This will be inside of your “app” directory.
Setup git locally.
Add link to the remote repository.
git remote add upstream [email protected]:projectname.git
Edit .gitignore to include the following:
*Note for Mac users, it is advantageous to also add .DS_Store
This is HIGHLY recommended. This prints out a list of files that would be added, so you can make sure there aren’t extra libraries or other files
git add . --dry-run
Add files to commit.
git add .
git commit -m "Initial commit of project files"
Upload to the repository.
git pull upstream master
git push upstream master