Tuesday, May 19, 2015

Pushing existing project to git

Git global setup git config --global user.name "NAME" git config --global user.email "EMAIL" Create a new repository mkdir Facade cd Facade git init touch README.md git add README.md git commit -m "first commit" git remote add origin git@gitlab.corp.xyz.net:service-decoupling/Facade.git git push -u origin master Push an existing Git repository cd existing_git_repo git remote add origin git@gitlab.corp.xyz.net:service-decoupling/Facade.git git push -u origin master

No comments: