Answers for "import project into github"

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
1

how to use github to setup projects

create a project in your GitHub account from the browser
 then use VS CODE or your terminal to clone your project "git clone URL"
 open your project and make any changes:
   1- 'git add .' // for add all file you changed
   2- 'git commit -m "your commit" '
   3- 'git push -u' to push your project
Posted by: Guest on August-19-2021

Code answers related to "import project into github"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language