Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <If something is inside arrows, you choose a name>
- For example:
- git something <your name here>
- could be...
- git something ImLearningGit
- ###################
- 1: Do the tutorial!
- ###################
- try.github.io
- #########################
- 2: Set up your local repo
- #########################
- git clone <git url> <directory name> -o github
- git pull github
- git status
- git log(q to exit)
- ############################
- 3: Make a branch to work on
- ############################
- git checkout -b <branch name>
- ############
- 4: Do stuff.
- ############
- #######################################
- 5: Add your work to your working branch
- #######################################
- git status(This will tell you files that are new/modified)
- git add <file>(In this step, you can add any new/modified files. use * to add all)
- git rm <file>(In this step, you can remove any files. do not rm * !)
- git status(Check the changes to be committed, they'll be in green text)
- git commit -m <commit message. say what you've done>
- #####################################
- 6: Merge your branch into the master
- #####################################
- git checkout master
- git pull
- git merge <working branch name>
- git push github
- ##########################################################
- 7: Update your branch incase someone else modified master
- ##########################################################
- git checkout <working branch name>
- git pull
- ##########################################################
- 8: Pat yourself on the back, because you've just used git
- ##########################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement