Preparing project for Git
Saturday 13, May 2017 | Post link
This really is a note for myself. Often I need to either setup a project for Git or use an existing Git project locally. Here are the steps to do both.
Preparing a new project for Git
Let's say I have a local project which I want to add to my remote Git server.
cd My-Project git init git add . git commit -m "Initial commit" Rem ** Create a project in gitlab/github and use that URL below ** git remote add origin {project url} git push -f origin master
Cloning an exsiting project
Let's say I have an existing project on GitHub which I want to fetch and work on.
git clone {Project Url}And that's all there is to it.
Categories:
Git (3)
Programming (28)
Tags:
Developer(2)
Git(2)
Comments