Friday, February 19, 2016

git basic commands : working with existing project : 1

Following commands are to add remote repos to your project folder. I use bitbucket for this example.
cd /path/to/my/yourprojectgit remote add origin push -u origin --all # pushes up the repo and its refs for the first time
And push all the folders and files under your current project folder
Add all folders and files

git add ./*

And commit
git commit -m "Your Project"

git push origin master

I will add more to this post.

No comments: