Advertisement
Guest User

Untitled

a guest
Mar 28th, 2014
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.33 KB | None | 0 0
  1. C:\Work\gittest>git init
  2. Initialized empty Git repository in C:/Work/gittest/.git/
  3.  
  4. C:\Work\gittest>echo "bla" > index.html
  5.  
  6. C:\Work\gittest>git add .
  7.  
  8. C:\Work\gittest>git status
  9. On branch master
  10.  
  11. Initial commit
  12.  
  13. Changes to be committed:
  14.   (use "git rm --cached <file>..." to unstage)
  15.  
  16.         new file:   index.html
  17.  
  18.  
  19. C:\Work\gittest>git commit -m "first commit"
  20. [master (root-commit) b0d1d18] first commit
  21.  1 file changed, 1 insertion(+)
  22.  create mode 100644 index.html
  23.  
  24. C:\Work\gittest>git checkout -b testbranch
  25. Switched to a new branch 'testbranch'
  26.  
  27. C:\Work\gittest>echo "foo" > index.html
  28.  
  29. C:\Work\gittest>git status
  30. On branch testbranch
  31. Changes not staged for commit:
  32.   (use "git add <file>..." to update what will be committed)
  33.   (use "git checkout -- <file>..." to discard changes in working directory)
  34.  
  35.         modified:   index.html
  36.  
  37. no changes added to commit (use "git add" and/or "git commit -a")
  38.  
  39. C:\Work\gittest>git checkout master
  40. M       index.html
  41. Switched to branch 'master'
  42.  
  43. C:\Work\gittest>git status
  44. On branch master
  45. Changes not staged for commit:
  46.   (use "git add <file>..." to update what will be committed)
  47.   (use "git checkout -- <file>..." to discard changes in working directory)
  48.  
  49.         modified:   index.html
  50.  
  51. no changes added to commit (use "git add" and/or "git commit -a")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement