Answers for "how to add my project to github"

4

how to add an existing project to github

# 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
Posted by: Guest on December-12-2020
5

Adding an existing project to GitHub

// How to add your local code to a git repository?

  // 1 - Create a repository on GitHub
  // 2 - Open a command line on the root folder of your project
  // 3 - Init a local repository 
      git init
  // 4 - Stage all the files 
      git add .
  // 5 - Commit 
      git commit -m "First commit"
  // 6 - Associate the Git repository 
      git remote add origin [YOUR_REPO_HTTPS_LINK]
  // 7 - Check remote connection 
      git remote -v
  // 8 - Push all to the remote repository 
      git push origin master
Posted by: Guest on June-29-2021
4

git push existing code to new repository

git remote add origin <remote repository URL>
Posted by: Guest on May-28-2020
5

github add directory to repository

git init
git add <folder1> <folder2> <etc.>
git commit -m "Your message about the commit"
git remote add origin https://github.com/yourUsername/yourRepository.git
git push -u origin master
git push origin master
Posted by: Guest on May-15-2020
4

how to upload existing project to github

git remote add origin remote repository URL
git remote -v
git push -f origin master
Posted by: Guest on June-16-2020
0

how to upload on github with command

git remote add origin https://github.com/yourusername/your-repo-name.git
Posted by: Guest on July-02-2020

Code answers related to "how to add my project to github"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language