美文网首页
1.2_git command

1.2_git command

作者: Android_Dev | 来源:发表于2018-06-05 22:09 被阅读6次

Git command review

Compare two commits, printing each line that is present in one commit but not the other.

git diff will do this. It takes two arguments - the two commit ids to compare. 

Make a copy of an entire Git repository, including the history, onto your own computer.

git clone will do this. It takes one argument - the url of the repository to copy. 

Temporarily reset all files in a directory to their state at the time of a specific commit.

git checkout will do this. It takes one argument - the commit ID to restore. 

Show the commits made in this repository, starting with the most recent.

git log will do this. It doesn't take any arguments.

相关文章

网友评论

      本文标题:1.2_git command

      本文链接:https://www.haomeiwen.com/subject/xnjcsftx.html