git add .
will only add files located in the root directory.
git add all
Find all new and updated files everywhere throughout the project and add them to the staging area
git add <file>
stage all changes in file for the next commit
git add <directory>
stage all changes in <directory> for the next commit
git add -p
begin an interactive staging session that lets you choose portions of a file to add to the next commit.
This will present you with a chunk of changes and prompt you for a command.
use y to stage the chunk, n to ignore the chunk, s to split it into smaller chunks, e to manually edit the chunk, and q to exit
resource : https://rubygarage.org/blog/most-basic-git-commands-with-examples
resource : https://www.atlassian.com/git/tutorials/saving-changes
will only add files located in the root directory.
git add all
Find all new and updated files everywhere throughout the project and add them to the staging area
git add <file>
stage all changes in file for the next commit
git add <directory>
stage all changes in <directory> for the next commit
git add -p
begin an interactive staging session that lets you choose portions of a file to add to the next commit.
This will present you with a chunk of changes and prompt you for a command.
use y to stage the chunk, n to ignore the chunk, s to split it into smaller chunks, e to manually edit the chunk, and q to exit
resource : https://rubygarage.org/blog/most-basic-git-commands-with-examples
resource : https://www.atlassian.com/git/tutorials/saving-changes
댓글
댓글 쓰기