Guest User

Untitled

a guest
Jun 18th, 2018
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. [assumes everything is installed]
  2. cd ruby_rails [ie, wherever you want to keep all your rails projects]
  3. rails new_project [create the project]
  4. ruby new_project/script/server [wow - your new app is up!]
  5. [ctrl-c to kill it]
  6.  
  7. [in new_project dir, do]
  8. git init
  9. git add .
  10. git status
  11. git commit -m "Initial commit"
  12. [need also git push if save to server, assumes new_project repository exists, if not first create it a github.com]
  13. git remote add origin git@github.com:YOURGITHUBUSERNAME/new_project.git
  14. git push origin master
  15.  
  16. [later... make some edits]
  17. git checkout -b modify-README [creates new branch named modify-README]
  18. [edit some files]
  19. [want to rename a file?] git mv README README.markdown
  20. [new files?] git add .
  21. git status
  22. git commit -a -m "comment about what you changed"
  23. git log [show history]
  24. git branch [shows branch tree]
  25.  
  26. [merge]
  27. git checkout master
  28. git merge modify-README
  29. git branch -d modify-README
  30. [you would want the branch to be all done and tested before you merge it]
  31. [sort of a Release Point]
  32. git push
Add Comment
Please, Sign In to add comment