How To Add An Existing Project To Github

Source URL: https://stackoverflow.com/questions/17291995/push-existing-project-into-github

Language: shell

Created on: 2020-12-12 13:16:51

# Go into your existing directory and run below commands
cd docker-spring-boot
echo "# docker-spring-boot" >> README.md
git init
git add -A
git commit -m "first commit"
git branch -M master
git remote add origin https://github.com/devopsmaster/docker-spring-boot.git
git push -u origin master
                

I have a folder with my project sources. How I can push this project into Github's repository? I tried using this steps: I created empty repository on GitHub. I run git-bash and typed git init,...
content_copy