Skip to content

Instantly share code, notes, and snippets.

@luketlancaster
Last active April 15, 2020 00:23
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save luketlancaster/296df5e31003eadddb6b88f303168425 to your computer and use it in GitHub Desktop.
Git Flow!!!

Git Stuff

  1. $ mdkir test
  2. $ cd test
  3. $ touch README.md
  4. Edit that README.md file, putting the name of the repo at the top
    • $ code .
    • # test
  5. $ git init
  6. $ git add README.md
  7. $ git commit -m "added README"
  8. $ git status
  9. Go to GitHub and make repo
    • Same name as the dir you made
  10. Copy the git remote add... bit
  11. $ git push origin master
  12. $ git branch ll-setup
  13. $ git checkout ll-setup
  14. $ touch index.html main.css main.js
  15. In index.html use type html and use the html:5 snippit to generate your html boilerplate
  16. Link main.css (type link in the head of your index.html and use the link:css snippit)
  17. Link main.js (type script in the body of your index.html and use the script:src snippit)
  18. h1 tag in index.html
  19. Change background color
  20. console.log('something')
  21. $ git add index.html main.css main.js
  22. $ git commit -m "base files created" (use your own message!)
  23. $ git push origin ll-boilerplate <- use the branchname you're currently on/you created in step 12
  24. Go to GitHub, make a PR
  25. Verify code && merge!
  26. $ git checkout master
  27. $ git pull origin master
@luketlancaster
Copy link
Author

remember that if a line starts with a $ it's a terminal command! That's there to let you know to use that command in the terminal, but don't use the $!

@luketlancaster
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment