$git status #Check what's changed currently
$git add $file #Add changed files to local git stage
$git commit $file #Commit files, Input comments
$git commit –a #commit all files not git-add, Input comments
$git commit –a –m “your comments” #commit with comment, not suggest
$git log #Check the commit history
$git log -n #display the latest n commit
$git log --author=eyouzho
$git log --stat #see files details
$git log --pretty=oneline #One line displays, showing only the hash
value and the commit description
$git rm $file # remove some files for current stage
$ git add forgotten_file # add this file to the
$ git commit --amend # amend commit to last one
git-6_修改后提交(commit&change)
猜你喜欢
转载自blog.csdn.net/zhanghuanhuanzhh/article/details/88660574
今日推荐
周排行