Git Instructions - thiagobs-webdev/helptools GitHub Wiki

Git Instructions for various use

1. Init Remote

# A) After you have created your repository on GitHub, enter your local project and follow the steps:

  1. git init
  2. git remote add origin your_url_git
  3. git pull origin master --allow-unrelated-histories
  4. git status If you have files to ignore, follow the instructions in B) and then return
  5. git add .
  6. git commit -m "Commit Initial"
  7. git push origin master

# B) If you have files to ignore:

  • Access the website: http://gitignore.io/. Create your data for gitignore.
  • Create your gitignore file now in the project directory. In Linux:
  • nano .gitignore and copy the data into this file