随笔分类 - Git
摘要:2.2Pull Requests Within a RepositoryWe're going to "come to you" and collaborate on your fork of the "dojo_rules" repository. To start out, we'll try ...
阅读全文
摘要:1.2Configuring GitHere's a list of some configuration options we just went over with one part of the git command missing. Make sure your own git confi...
阅读全文
摘要:THE MISTAKEYou decided that unicorns should leave a rainbow trail when they jump. You made the upgrade, and committed the changes. There is a problem,...
阅读全文
摘要:SUBMODULEYou're in the process of putting together two websites. One is for the Mythical Wildlife Fund: MWF.com. The other site is an adoption site fo...
阅读全文
摘要:LINE ENDINGS IYour company just hired a new developer who works on a Windows computer, and you notice that some files seem to be missing line separato...
阅读全文
摘要:REPO COPYNow you've done it. You accidentally put the company's master password into one of your files. You're beginning to panic because you know tha...
阅读全文
摘要:GIT STASHYou're not quite ready to commit what you're working on, but need to make a quick fix to master. Fear not, juststashyour current changes so y...
阅读全文
摘要:REBASE RECAPSo you've been working on your feature branch for a couple days and you realize you need to bring commits back in from master. Now you cou...
阅读全文
摘要:#Resetting the Stage:git reset octofamily/octodog.txt#Undo#git reset did a great job of unstaging octodog.txt, but you'll notice that he's still #ther...
阅读全文
摘要:All those e-mail addresses and SHAs are making it hard to see commit messages in your history. Try viewing the log with one commit per line.git log --...
阅读全文
摘要:You've made some commits to a feature branch, but you've also committed a hotfix on master that would make a merge messy. Check out thekennelbranch so...
阅读全文
摘要:/** Remote branch and tags */ $ git checkout -b shopping_cart //switched to a new branch 'shopping_cart' and checkout(Locally) $ git...
阅读全文
摘要:/** Collaboration basics*/Understand git pull command:$ git pull -->> it does two things 1. $ git fetch //get file from remote ro...
阅读全文
摘要:/** Collaborating*/$ git clone https://github.com/codeschool/git-real.git //copy repo to your local Cloning into 'git-r...
阅读全文
摘要:/** */$ git diff //view the differences, to see what you have changed. ...
阅读全文
摘要:/** LEVEL ONE: In this level, you will learn follow things: 1. How to point which project folder you want GIT to work on!...
阅读全文