Guest User

Untitled

a guest
Apr 22nd, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. cd to the project
  2. open a regular webpage to github (my github)
  3. open a private webpage to github (server's github)
  4. git status (to view the current branch status)
  5. git branch -v (to view all branches)
  6.  
  7. Setting things up:
  8. git clone <clone url>
  9. cd into the project
  10. git status to view
  11. git branch -v (check if only the master is there)
  12.  
  13. repeat for each branch:
  14. ex. git checkout -b brian origin/brian
  15.  
  16. Now making first commit:
  17. git checkout brian (to switch to my branch)
  18. nano README.md
  19. git add .
  20. git commit -m '<message>'
  21. **might have to set up identification**
  22. git config --global user.email "<email>"
  23. git config --global user.name "<your name>"
  24.  
  25. git push origin brian
  26. **then asks for credentials**
  27. switch to brian branch on github (my github)
  28. new pull request
  29. switch to private window of the triftek server github (username: triftek, password: khanal2845)
  30. click on pull request and merge
  31. create a pull request
  32. **there might be merge conflict**
  33. if there is a merge conflict, might have to delete things
  34. merge (this updated the server's master)
  35.  
  36. **one time thing**
  37. git remote add upstream <url of triftek repo (the clone)>
  38. git remote -v (this checks the origin and upstream)
  39.  
  40. git checkout master
  41. git fetch upstream
  42. git rebase upstream/master
  43.  
  44. if want to update a specific branch
  45. git checkout brian
  46. git fetch upstream
  47. git rebase upstream/brian
  48.  
  49. then
  50. git merge brian master or might be git merge master brian
  51.  
  52. Updating your github: (updating the master of the github/ pushing from local to remote repo)
  53. git push --all
  54. **asks for credentials**
  55.  
  56. How to run the master:
  57. git checkout to master (if not there already or do git branch -v to check what branch i'm in)
  58. cd to the project
  59. python manage.py runserver
Add Comment
Please, Sign In to add comment