Skip to content

Instantly share code, notes, and snippets.

@esova-ana
Last active January 18, 2024 05:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save esova-ana/15848137e87445e7f08e7a42b0cd28da to your computer and use it in GitHub Desktop.
Save esova-ana/15848137e87445e7f08e7a42b0cd28da to your computer and use it in GitHub Desktop.
Push project to Github
/*-----------------------------------------------------------------
PUSH TO GITHUB
------------------------------------------------------------------*/
// create a repository
// go to the folder you want to push
git init
git add -A
git commit -m "First commit"
git remote add origin <project url>
git push origin <branch name>
// each time you change the code
$ git add -A
$ git commit -m "My commit message"
$ git push origin <branch name>
/*-----------------------------------------------------------------
CREATE GITHUB PAGE
------------------------------------------------------------------*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment