Git Adding Files

git

// Git - Adding files:

When we do 'git add' to add a file, Git stage that file at that time.  If we
modify the file, and do a 'git status', it would show that the file is both
tracked and untracked.  If we do a commit at this time, the commit will only
include the version that was staged, not the most recent version with changes.  
We would need to use 'git add' one more time to stage the new changes.  Once we
staged our changes, we are ready to commit them to the repository.  We can 
commit with 'git commit -m "message"'.  

git add . // stage everything
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License