Difference between revisions of "Git SCM Notes"
Jump to navigation
Jump to search
PeterHarding (talk | contribs) |
PeterHarding (talk | contribs) |
||
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Also see - [[Git_Notes]] | [[Summary_of_Git_Commands]] | [[Getting Started with Git]] | |||
=Overview= | =Overview= | ||
Line 8: | Line 10: | ||
* http://git-scm.com/ | * http://git-scm.com/ | ||
* http://book.git-scm.com/index.html | |||
* https://git.wiki.kernel.org/ | |||
* http://github.com/ | |||
* http://schacon.github.com/git/everyday.html | |||
* http://gitref.org/ | |||
* http://progit.org/book/ | |||
* [http://progit.org/ebook/progit.pdf ProGit Book in PDF Format] | |||
* http://gitguru.com/ | |||
=Commands= | |||
==git reset== | |||
* http://blog.plover.com/prog/git-reset.html | |||
=Related SItes= | |||
* http://github.com/ | |||
Also see - [[Git_Notes]] | [[Summary_of_Git_Commands]] | [[Getting Started with Git]] | |||
=Handling Renamed Files= | |||
See - http://stackoverflow.com/questions/12823976/how-to-modify-git-add-to-handle-deleted-files | |||
git add . will add new and modified files to the index. git add -u will delete files from the index when they are deleted on-disk and update modified files, but will not add new files. You need a combination of the two: | |||
git add . && git add -u . | |||
Addendum: It appears that the -A switch will catch all three: added, modified, and deleted files. | |||
git add -A . | |||
Note the extra '.' on git add -A and git add -u | |||
[[Category:Git]] | [[Category:Git]] | ||
[[Category:SCM]] | [[Category:SCM]] |
Latest revision as of 07:48, 31 August 2015
Also see - Git_Notes | Summary_of_Git_Commands | Getting Started with Git
Overview
Check out this YouTube Video:
http://www.youtube.com/watch?v=4XpnKHJAok8
Links
Commands
git reset
Related SItes
Also see - Git_Notes | Summary_of_Git_Commands | Getting Started with Git
Handling Renamed Files
See - http://stackoverflow.com/questions/12823976/how-to-modify-git-add-to-handle-deleted-files
git add . will add new and modified files to the index. git add -u will delete files from the index when they are deleted on-disk and update modified files, but will not add new files. You need a combination of the two:
git add . && git add -u .
Addendum: It appears that the -A switch will catch all three: added, modified, and deleted files.
git add -A .
Note the extra '.' on git add -A and git add -u