/git.sh Secret
Created
February 26, 2012 16:25
Git: the DVCS from hell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~/Sites/ | |
mkdir phpxperts | |
cd phpxperts/ | |
git init | |
vi index.php | |
git status | |
git config user.name 'Rifat Nabi' | |
git config user.email 'rifat@facebook.com' | |
git status | |
git add index.php | |
git status | |
git commit -m 'initial commit' | |
git branch | |
git branch feature_awesome | |
git branch | |
git checkout feature_awesome | |
git branch | |
git checkout master | |
git checkout feature_awesome | |
git status | |
git add . | |
git status | |
git commit | |
git checkout master | |
git commit -a -m 'critical fix' | |
git branch -m feature_awesome feature/awesome | |
gitk --all | |
git checkout feature/awesome | |
git status | |
git commit -a -m 'improved hr lib' | |
git checkout master | |
git merge feature/awesome | |
git commit -a -m 'public' | |
git checkout feature/awesome | |
git checkout master | |
git checkout -b feature/scary | |
git checkout feature/awesome | |
git commit -a -m 'protected' | |
git checkout master | |
git merge feature/awesome | |
git status | |
git add index.php | |
git status | |
git commit -m 'awesome merged' | |
git log | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment