Changes between Version 21 and Version 22 of Developer/Git


Ignore:
Timestamp:
Jan 19, 2012, 3:28:22 PM (9 years ago)
Author:
Cdcs
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Developer/Git

    v21 v22  
    7777 git pull
    7878}}}
    79 Next make your changes to files. If you add or delete files you need to inform Git
     79Next make your changes to files. If you add, delete or move/rename files you need to inform Git
    8080{{{
    8181 git add /some/new/file
    8282 git rm /some/old/file
     83 git mv /some/old/file /some/new/file
    8384}}}
    8485When you're satisfied with the changes you made, commit them (locally)
     
    183184 git reset HEAD-1
    184185}}}
    185 Removes the last 1 (or any other number you put) commit from the current branch. git reset should only be used on local branches that no one else is accessing remotely.
     186Removes the last 1 (or any other number you put) commit from the current branch. git reset should only be used on local branches that no one else is accessing remotely. This is a very powerful and tricky command; A good description of what it enables to do can be found [http://progit.org/2011/07/11/reset.html here]
    186187{{{
    187188 git revert HEAD~1