Guest User

Untitled

a guest
Apr 22nd, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 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 status)
  5. git branch -v (to view all branches and check which branch your on)
  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. git push origin brian
  25. **then asks for credentials**
  26. switch to brian branch on github (my github)
  27. new pull request
  28. switch to private window of the triftek server github (username: triftek, password: khanal2845)
  29. click on pull request and merge
  30. create a pull request
  31. **there might be merge conflict**
  32. if there is a merge conflict, might have to delete things
  33. merge (this updated the server's master)
  34.  
  35. **one time thing**
  36. git remote add upstream <url of triftek repo (the clone)>
  37. git remote -v (this checks the origin and upstream)
  38.  
  39. git checkout master
  40. git fetch upstream
  41. git rebase upstream/master
  42.  
  43. if want to update a specific branch
  44. git checkout brian
  45. git fetch upstream
  46. git rebase upstream/brian
  47.  
  48. then
  49. git merge brian master or might be git merge master brian
  50.  
  51. Updating your github: (updating the master of the github/ pushing from local to remote repo)
  52. git push --all
  53. **asks for credentials**
  54.  
  55. How to run the master:
  56. git checkout to master (if not there already or do git branch -v to check what branch i'm in then switch to master)
  57. cd to the project
  58. python manage.py runserver
Add Comment
Please, Sign In to add comment