Created
          February 22, 2016 16:43 
        
      - 
      
- 
        Save worace/fa7a7d7ecdfc6951ae31 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or 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
    
  
  
    
  | worace @ workshops ➸ mkdir babys_first_repo | |
| worace @ workshops ➸ cd babys_first_repo | |
| worace @ babys_first_repo ➸ la | |
| worace @ babys_first_repo ➸ git status | |
| fatal: Not a git repository (or any of the parent directories): .git | |
| worace @ babys_first_repo ➸ git init | |
| Initialized empty Git repository in /Users/worace/Turing/workshops/babys_first_repo/.git/ | |
| worace @ babys_first_repo ➸ vim pizza.txt | |
| worace @ babys_first_repo ➸ git status | |
| On branch master | |
| Initial commit | |
| Untracked files: | |
| (use "git add <file>..." to include in what will be committed) | |
| pizza.txt | |
| nothing added to commit but untracked files present (use "git add" to track) | |
| worace @ babys_first_repo ➸ git add . | |
| worace @ babys_first_repo ➸ git status | |
| On branch master | |
| Initial commit | |
| Changes to be committed: | |
| (use "git rm --cached <file>..." to unstage) | |
| new file: pizza.txt | |
| worace @ babys_first_repo ➸ git commit -m "makin a commmmmmmit" | |
| [master (root-commit) 1905e09] makin a commmmmmmit | |
| 1 file changed, 2 insertions(+) | |
| create mode 100644 pizza.txt | |
| worace @ babys_first_repo ➸ hub create | |
| Updating origin | |
| created repository: worace/babys_first_repo | |
| worace @ babys_first_repo ➸ hb | |
| worace @ babys_first_repo ➸ git remote -v | |
| origin [email protected]:worace/babys_first_repo.git (fetch) | |
| SECOND FILE ON ANOTHER BRANCH | |
| origin [email protected]:worace/babys_first_repo.git (push) | |
| worace @ babys_first_repo ➸ git status | |
| On branch master | |
| nothing to commit, working directory clean | |
| worace @ babys_first_repo ➸ git push origin master | |
| hbCounting objects: 3, done. | |
| Writing objects: 100% (3/3), 258 bytes | 0 bytes/s, done. | |
| Total 3 (delta 0), reused 0 (delta 0) | |
| To [email protected]:worace/babys_first_repo.git | |
| * [new branch] master -> master | |
| worace @ babys_first_repo ➸ hb | |
| worace @ babys_first_repo ➸ git log | |
| worace @ babys_first_repo ➸ git checkout lol | |
| error: pathspec 'lol' did not match any file(s) known to git. | |
| worace @ babys_first_repo ➸ git checkout -b first-branch | |
| Switched to a new branch 'first-branch' | |
| worace @ babys_first_repo ➸ git status | |
| On branch first-branch | |
| nothing to commit, working directory clean | |
| worace @ babys_first_repo ➸ vim second_file.txt | |
| worace @ babys_first_repo ➸ gs | |
| On branch first-branch | |
| Untracked files: | |
| (use "git add <file>..." to include in what will be committed) | |
| second_file.txt | |
| nothing added to commit but untracked files present (use "git add" to track) | |
| worace @ babys_first_repo ➸ git add . | |
| worace @ babys_first_repo ➸ git commit -m "adding a second file" | |
| [first-branch 569589e] adding a second file | |
| 1 file changed, 1 insertion(+) | |
| create mode 100644 second_file.txt | |
| worace @ babys_first_repo ➸ git hist | |
| worace @ babys_first_repo ➸ git remote -v | |
| origin [email protected]:worace/babys_first_repo.git (fetch) | |
| origin [email protected]:worace/babys_first_repo.git (push) | |
| worace @ babys_first_repo ➸ git push origin first-branch | |
| Counting objects: 3, done. | |
| Delta compression using up to 4 threads. | |
| Compressing objects: 100% (2/2), done. | |
| Writing objects: 100% (3/3), 325 bytes | 0 bytes/s, done. | |
| Total 3 (delta 0), reused 0 (delta 0) | |
| To [email protected]:worace/babys_first_repo.git | |
| * [new branch] first-branch -> first-branch | |
| worace @ babys_first_repo ➸ git branch | |
| * first-branch | |
| master | |
| worace @ babys_first_repo ➸ git checkout master | |
| Switched to branch 'master' | |
| worace @ babys_first_repo ➸ git pull origin master | |
| remote: Counting objects: 1, done. | |
| remote: Total 1 (delta 0), reused 0 (delta 0), pack-reused 0 | |
| Unpacking objects: 100% (1/1), done. | |
| From github.com:worace/babys_first_repo | |
| * branch master -> FETCH_HEAD | |
| 1905e09..2bfb2f5 master -> origin/master | |
| Updating 1905e09..2bfb2f5 | |
| Fast-forward | |
| second_file.txt | 1 + | |
| 1 file changed, 1 insertion(+) | |
| create mode 100644 second_file.txt | |
| worace @ babys_first_repo ➸ git status | |
| On branch master | |
| nothing to commit, working directory clean | |
| worace @ babys_first_repo ➸ git br | |
| first-branch | |
| * master | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment