wilded
3/28/2018 - 10:09 AM

Adding a New Project in Git

Open Terminal and locate yourself on your projects folder (cd .. cd .. cd Aplications/XAMPP/htdocs/project_name)
git status (Verify if there is already a git repository locally)
git init (If there is no repository initiate one)
Login to your Github account and create a new respository (Copy the URL to the repository)
git remote add origin /path/to/origin.git (Add the reposotiry's URL On your local configuration)
git add . (Add all the files to the first commit)
git commit -m "initial commit" (Comment your first commit)
git push origin master (Upload your project and Walah)