Created
July 12, 2012 20:21
-
-
Save matthewmccullough/3100702 to your computer and use it in GitHub Desktop.
2012-07-12 GitHub Online Git Workshop
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
git --version | |
pwd | |
git init project1 | |
ls -al | |
cd project1 | |
ls -al | |
open . | |
which git | |
ls -al | |
mkdir source | |
mkdir output | |
mkdir resources | |
touch source/file1.txt | |
touch output/file2.txt | |
git add . | |
git commit -m | |
git commit -m"First commit" | |
git config --list | less | |
git config user.name | |
git config user.email | |
git config --local user.name | |
git config --local user.email | |
git config --global user.email | |
git config --system user.email | |
git config user.email | |
git config -e --global | |
vim first.txt | |
git status | |
vim first.txt | |
ls | |
git status | |
git add first.txt | |
git status | |
git commit -m"My second commit" | |
git status | |
git log | |
vim first.txt | |
git diff | |
git status | |
git add *.txt | |
git status | |
git commit -m"Third commit" | |
git status | |
git log | |
touch second.txt | |
git commit -m"Another new one" -- second.txt | |
git commit -a -m"Another new one" -- second.txt | |
git add second.txt ; git commit -m"Second" | |
touch third.txt | |
git add third.txt | |
git status | |
vim first.txt | |
git diff | |
git diff --color-words | |
git log | |
git log --stat | |
git log --status | |
git log --summary | |
git log -p | |
git log --pretty-full | |
git log --pretty=full | |
git log --pretty=raw | |
git config alias.l2 | |
git l2 | |
vim .gitignore | |
git status | |
git commit -m"Some txt file changes" | |
git add first.txt | |
git commit -m"Changes to first file on a line by line basis" | |
git status | |
git add .gitignore | |
git commit -m"Ignoring all temp and log files" | |
git status | |
echo JUNK > stuff.log | |
echo JUNK > stuff.tmp | |
echo JUNK > build/stuff.tmp | |
echo JUNK > output/stuff.tmp | |
echo JUNK > output/stuff.log | |
git status | |
git add . | |
git diff --since=1.day.ago | mate | |
git log --since=1.day.ago | mate | |
git log -p --since=1.day.ago | mate | |
git status | |
git rm first.txt | |
git status | |
git checkout HEAD -- first.txt | |
git status | |
git checkout HEAD -- second.txt | |
git status | |
git rm first.txt | |
git status | |
git checkout -- first.txt | |
git checkout HEAD -- first.txt | |
git status | |
git status | |
git add -u . | |
git status | |
git reset --hard | |
git status | |
git checkout HEAD~2 -- first.txt | |
git status | |
git reset --hard | |
git status | |
git mv first.txt uno.txt | |
git status | |
git mv second.txt deux.txt | |
git status | |
git commit -m"Renaming the files" | |
git log --stat | |
git log --stat -M | |
git mv uno.txt source/ | |
git status | |
git add -A . | |
git status | |
git add -A . | |
git status | |
git commit -m"Renamed and copied files" | |
git log --stat -C | |
vim source/deuxwithchanges.txt | |
git reset --hard | |
git status | |
vim source/unowithchanges.txt | |
git add -A . | |
git status | |
git commit -m"Renamed with changes" | |
git log --stat -M70 | |
git log --stat -M66 | |
git log --stat -M65 | |
git log --stat -M | |
z git_git | |
git blame rerere.c | |
git blame -C rerere.c | |
jenkins-start | |
to.scratch | |
cd project1 | |
git log --summary | |
git log --since=one.month.ago |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment