Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. <If something is inside arrows, you choose a name>
  2.  
  3. For example:
  4.  
  5. git something <your name here>
  6.  
  7. could be...
  8.  
  9. git something ImLearningGit
  10.  
  11.  
  12. ###################
  13. 1: Do the tutorial!
  14. ###################
  15.  
  16.  
  17. try.github.io
  18.  
  19.  
  20. #########################
  21. 2: Set up your local repo
  22. #########################
  23.  
  24.  
  25.  
  26. git clone <git url> <directory name> -o github
  27. git pull github
  28. git status
  29. git log(q to exit)
  30.  
  31.  
  32.  
  33. ############################
  34. 3: Make a branch to work on
  35. ############################
  36.  
  37. git checkout -b <branch name>
  38.  
  39. ############
  40. 4: Do stuff.
  41. ############
  42.  
  43. #######################################
  44. 5: Add your work to your working branch
  45. #######################################
  46.  
  47. git status(This will tell you files that are new/modified)
  48. git add <file>(In this step, you can add any new/modified files. use * to add all)
  49. git rm <file>(In this step, you can remove any files. do not rm * !)
  50. git status(Check the changes to be committed, they'll be in green text)
  51. git commit -m <commit message. say what you've done>
  52.  
  53. #####################################
  54. 6: Merge your branch into the master
  55. #####################################
  56.  
  57. git checkout master
  58. git pull
  59. git merge <working branch name>
  60. git push github
  61.  
  62. ##########################################################
  63. 7: Update your branch incase someone else modified master
  64. ##########################################################
  65.  
  66. git checkout <working branch name>
  67. git pull
  68.  
  69. ##########################################################
  70. 8: Pat yourself on the back, because you've just used git
  71. ##########################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement