Pages

Sunday, 29 November 2020

Add Project to GitHub Using Git Base

 HOW TO ADD A PROJECT TO GITHUB USING GIT BASE


  • Open github
  • Create repository
    • Now you have command to use 
    • You can just follow steps and copy - paste it
  • Open gitbase
  • Go to the file location
  • Enter command in gitbase
    • For location right click on project
    • Properties
    • Resource
    • Location
    • Copy location path
Commands:
  1. $ cd "<path>"
  2. $ git init
  3. $ git remote add origin http------------ (code copied from git repo)
    • If Initialized found
      • Ok
    • Else if Reinitialized found
      • Better to remove
      • $ rm -rf .git
      • $ git init
  4. $ git add .
  5. $ git commit -m "first commit"
    • Dot(.) means, add all code from current location
  6. $ git branch -M main
  7. $ git push -u origin main
Refresh repository

--Thanks

No comments:

Post a Comment

Deploy Your Code To Heroku App

GitHub To Heroku Node.js To Heroku  1. HOW TO DEPLOY AN APP TO HEROKU FROM GITHUB