Thứ Hai, 16 tháng 6, 2014

Git Basic

Record change to the repository

As we add or modify a file, Git sees them as modified or new file. After added / modified, we have to stage the modified file and commit it to Git repository.


The lifecycle of the status of your files.

Some basic command in Git

  1. git status : to check status of file
  2. git add <file name>: to tracking a new or modified file.
  3. git commit:  commit new / modified file to Git database.
  4. git diff: To see what you have changed.  Note: git diff  just show the change when the file not yet staged. To see what you have change in staged, use git diff --cached
  5. git rm: remove the file from repository and working directory. To remove file only in repository (untracked file) . Use: git rm --cahed

1 nhận xét:

  1. Casino of Vegas - Mapyro
    Find the best Casino of Vegas in the US at 경상북도 출장안마 Mapyro. You can also 여주 출장샵 check in with other people in this 평택 출장마사지 area. You can do 김천 출장샵 all you 통영 출장안마 can to have fun

    Trả lờiXóa